Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2008-01-15 22:23:59 +0000
committerAndrew Niefer2008-01-15 22:23:59 +0000
commited9b1320fc45e9f914aaac02a58898824ce0e146 (patch)
tree857d8f8db6aac291c7f0418885e07ad9907d7460 /bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
parentf78f796cf38354e38e76e4aea36d84abae9198b9 (diff)
downloadrt.equinox.framework-ed9b1320fc45e9f914aaac02a58898824ce0e146.tar.gz
rt.equinox.framework-ed9b1320fc45e9f914aaac02a58898824ce0e146.tar.xz
rt.equinox.framework-ed9b1320fc45e9f914aaac02a58898824ce0e146.zip
bug 212815 - handle file: URLsv20080115
Diffstat (limited to 'bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java')
-rw-r--r--bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
index 40834de2f..1d7f35b32 100644
--- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
+++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java
@@ -1020,8 +1020,12 @@ public class Main {
File toAdjust = new File(spec.substring(5));
if (!toAdjust.isAbsolute()) {
String installArea = System.getProperties().getProperty(PROP_INSTALL_AREA);
- if (installArea != null)
- toAdjust = new File(installArea, toAdjust.getPath());
+ if (installArea != null) {
+ if (installArea.startsWith(FILE_SCHEME))
+ toAdjust = new File(installArea.substring(5), toAdjust.getPath());
+ else if (new File(installArea).exists())
+ toAdjust = new File(installArea, toAdjust.getPath());
+ }
}
if (toAdjust.isDirectory())
return adjustTrailingSlash(toAdjust.toURL(), trailingSlash);

Back to the top