Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2006-01-24 16:57:56 +0000
committerPascal Rapicault2006-01-24 16:57:56 +0000
commita6be2542c3f028415edb45c84f8d8ef75c26a444 (patch)
tree67af32ee956287e4a1f08fb97b09964304827d05 /bundles/org.eclipse.equinox.simpleconfigurator.manipulator
parent2f76d89ac8a85170a8428d8eef44f39db71ea42c (diff)
downloadrt.equinox.p2-a6be2542c3f028415edb45c84f8d8ef75c26a444.tar.gz
rt.equinox.p2-a6be2542c3f028415edb45c84f8d8ef75c26a444.tar.xz
rt.equinox.p2-a6be2542c3f028415edb45c84f8d8ef75c26a444.zip
change the reader to support null
Diffstat (limited to 'bundles/org.eclipse.equinox.simpleconfigurator.manipulator')
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/core/configurationManipulator/ConfigurationReader.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/core/configurationManipulator/ConfigurationReader.java b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/core/configurationManipulator/ConfigurationReader.java
index af0422b01..658230a35 100644
--- a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/core/configurationManipulator/ConfigurationReader.java
+++ b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/core/configurationManipulator/ConfigurationReader.java
@@ -54,12 +54,19 @@ public class ConfigurationReader {
BufferedReader r = new BufferedReader(new InputStreamReader(new URL(configurationLocation, CONFIG_LOCATION).openStream()));
String line;
while ( (line = r.readLine()) != null) {
- StringTokenizer tok = new StringTokenizer(line, ",");
+ StringTokenizer tok = new StringTokenizer(line, ",", true);
BundleInfo bundle = new BundleInfo();
bundle.setSymbolicName(tok.nextToken());
+ tok.nextToken(); //,
bundle.setVersion(tok.nextToken());
- bundle.setLocation(tok.nextToken());
+ tok.nextToken(); //,
+ String location = tok.nextToken();
+ if (! location.equals(",")) {
+ bundle.setLocation(location);
+ tok.nextToken(); //,
+ }
bundle.setStartLevel(Integer.parseInt(tok.nextToken().trim()));
+ tok.nextToken(); //,
bundle.setExpectedState(Integer.parseInt(tok.nextToken()));
bundles.add(bundle);

Back to the top