Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-12-20 07:31:49 +0000
committerEike Stepper2011-12-20 07:31:49 +0000
commitc32790075e3e94ec621825440ea746cdd56af497 (patch)
tree324853d5993547b9ba08e189f4e77c4d8161ebf3
parent68887875f5ebfff23eb2631d7831fa7ed7995907 (diff)
downloadcdo-c32790075e3e94ec621825440ea746cdd56af497.tar.gz
cdo-c32790075e3e94ec621825440ea746cdd56af497.tar.xz
cdo-c32790075e3e94ec621825440ea746cdd56af497.zip
Fixed 1.6 usage
-rw-r--r--plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java
index 80f0f8664b..b1b5a8edd9 100644
--- a/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java
+++ b/plugins/org.eclipse.emf.cdo.releng/src/org/eclipse/emf/cdo/releng/PrintReleaseDeliverablesForPlan.java
@@ -11,8 +11,9 @@
package org.eclipse.emf.cdo.releng;
import java.io.File;
-import java.io.FileReader;
+import java.io.FileInputStream;
import java.io.IOException;
+import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
@@ -36,14 +37,14 @@ public class PrintReleaseDeliverablesForPlan
}
File propertiesFile = new File(featureFolder, "feature.properties");
- FileReader reader = null;
+ InputStream in = null;
try
{
- reader = new FileReader(propertiesFile);
+ in = new FileInputStream(propertiesFile);
Properties properties = new Properties();
- properties.load(reader);
+ properties.load(in);
String name = properties.getProperty("featureName");
String description = properties.getProperty("description");
@@ -52,9 +53,9 @@ public class PrintReleaseDeliverablesForPlan
}
finally
{
- if (reader != null)
+ if (in != null)
{
- reader.close();
+ in.close();
}
}
}

Back to the top