[DS-707] Fix stream closure from previous checkin

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5666 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Graham Triggs
2010-10-26 23:30:46 +00:00
parent 1b1cc00a34
commit df01a66951

View File

@@ -214,7 +214,20 @@ public class ConfigurationManager
if (modFile.exists())
{
modProps = new Properties();
modProps.load(new FileInputStream(modFile));
InputStream modIS = null;
try
{
modIS = new FileInputStream(modFile);
modProps.load(modIS);
}
finally
{
if (modIS != null)
{
modIS.close();
}
}
for (Enumeration pe = modProps.propertyNames(); pe.hasMoreElements(); )
{
String key = (String)pe.nextElement();