diff options
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.java | 8 |
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); |