diff options
author | Ed Merks | 2021-09-24 06:20:13 +0000 |
---|---|---|
committer | Ed Merks | 2021-09-24 06:41:10 +0000 |
commit | 7aba4e24389ac6b293028ac2a5109b2dc5d80aed (patch) | |
tree | 899a071f1327eb300eb9e923924548c5d4255cd4 | |
parent | 3ce784a501dee627986f14bbcbbce3b5755540a2 (diff) | |
download | rt.equinox.framework-7aba4e24389ac6b293028ac2a5109b2dc5d80aed.tar.gz rt.equinox.framework-7aba4e24389ac6b293028ac2a5109b2dc5d80aed.tar.xz rt.equinox.framework-7aba4e24389ac6b293028ac2a5109b2dc5d80aed.zip |
Bug 576237 - [director] Windows path handling broken and causes eclipseI20210928-0600I20210927-1800I20210927-0600I20210926-1800I20210926-0600I20210925-1800I20210925-0600I20210924-1800
to fail to start
Don't use String.replaceAll when String.replace is intended, especially
not when the first argument is a file system path.
Change-Id: Ib1f65a5062cf0552ec4d4c81e0419102221871ac
Signed-off-by: Ed Merks <ed.merks@gmail.com>
Reviewed-on: https://git.eclipse.org/r/c/equinox/rt.equinox.framework/+/185795
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java | 2 |
1 files changed, 1 insertions, 1 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 6c215bec7..3cb2fab53 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 @@ -1970,7 +1970,7 @@ public class Main { String launcher = System.getProperty(PROP_LAUNCHER); if (launcher == null) throw new IllegalStateException("Install location depends on launcher, but launcher is not defined"); //$NON-NLS-1$ - installArea = installArea.replaceAll(LAUNCHER_DIR, new File(launcher).getParent()); + installArea = installArea.replace(LAUNCHER_DIR, new File(launcher).getParent()); } installLocation = buildURL(installArea, true); if (installLocation == null) |