diff options
author | Andrew Niefer | 2008-01-15 22:23:59 +0000 |
---|---|---|
committer | Andrew Niefer | 2008-01-15 22:23:59 +0000 |
commit | ed9b1320fc45e9f914aaac02a58898824ce0e146 (patch) | |
tree | 857d8f8db6aac291c7f0418885e07ad9907d7460 /bundles/org.eclipse.equinox.launcher/src | |
parent | f78f796cf38354e38e76e4aea36d84abae9198b9 (diff) | |
download | rt.equinox.framework-ed9b1320fc45e9f914aaac02a58898824ce0e146.tar.gz rt.equinox.framework-ed9b1320fc45e9f914aaac02a58898824ce0e146.tar.xz rt.equinox.framework-ed9b1320fc45e9f914aaac02a58898824ce0e146.zip |
Diffstat (limited to 'bundles/org.eclipse.equinox.launcher/src')
-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); |