Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDJ Houghton2007-09-20 22:29:23 +0000
committerDJ Houghton2007-09-20 22:29:23 +0000
commit2aa27895af48640fe2e9edd3e55d3a42963a1bb7 (patch)
treee673df30395818f4b576f4ea382e1f0a5264202a /bundles/org.eclipse.equinox.frameworkadmin.equinox/src
parenta17696177af297132a201857274a48b18bc89efe (diff)
downloadrt.equinox.p2-2aa27895af48640fe2e9edd3e55d3a42963a1bb7.tar.gz
rt.equinox.p2-2aa27895af48640fe2e9edd3e55d3a42963a1bb7.tar.xz
rt.equinox.p2-2aa27895af48640fe2e9edd3e55d3a42963a1bb7.zip
Fixed relative path problem because cfg line contained an extra slash in the URL.
Diffstat (limited to 'bundles/org.eclipse.equinox.frameworkadmin.equinox/src')
-rw-r--r--bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxFwConfigFileParser.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxFwConfigFileParser.java b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxFwConfigFileParser.java
index ce7804e33..667d4b0e7 100644
--- a/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxFwConfigFileParser.java
+++ b/bundles/org.eclipse.equinox.frameworkadmin.equinox/src/org/eclipse/equinox/frameworkadmin/equinox/internal/EquinoxFwConfigFileParser.java
@@ -102,8 +102,13 @@ public class EquinoxFwConfigFileParser {
e.printStackTrace();
}
String fwJarSt = fwJarUrl.toExternalForm();
- if (fwJarSt.length() > 5 && fwJarSt.charAt(4) != '/') {
- fwJarSt = "file:/" + fwJarUrl.getFile();
+ // TODO I just added this "if" stmt because we were seeing an extra slash
+ // appearing in the resulting URL. was this the right thing to do? the indexes
+ // seem off in the loop below. (I'm on linux if that makes a difference)
+ if (!fwJarSt.startsWith("file:")) {
+ if (fwJarSt.length() > 5 && fwJarSt.charAt(4) != '/') {
+ fwJarSt = "file:/" + fwJarUrl.getFile();
+ }
}
props.setProperty(EquinoxConstants.PROP_OSGI_FW, fwJarSt /* fwJar.getAbsolutePath() */);
}

Back to the top