Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2015-02-20 12:37:58 -0500
committerPascal Rapicault2015-02-20 12:42:46 -0500
commit3baab8f64d4c868efe1387df3d2189faad2debc7 (patch)
tree6050ff09a07182d5e58e5459ae20c03879d23a1a
parent935d5e6a32d27af5af2550dc9b5f17e997cfe067 (diff)
downloadrt.equinox.p2-R4_4_maintenance.tar.gz
rt.equinox.p2-R4_4_maintenance.tar.xz
rt.equinox.p2-R4_4_maintenance.zip
Bug 441098 - Windows - can not remove product.exeR4_4_maintenance
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java b/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java
index 2bfb6c830..0d3204027 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.natives/src/org/eclipse/equinox/internal/p2/touchpoint/natives/BackupStore.java
@@ -283,6 +283,12 @@ public class BackupStore implements IBackupStore {
}
private boolean isEclipseExe(File file) {
+ String launcher = System.getProperty("eclipse.launcher"); //$NON-NLS-1$
+ if (launcher != null) {
+ String base = new File(launcher).getName();
+ if (file.getName().equalsIgnoreCase(base))
+ return true;
+ }
return file.getName().equalsIgnoreCase("eclipse.exe") || file.getName().equalsIgnoreCase("eclipsec.exe"); //$NON-NLS-1$ //$NON-NLS-2$
}

Back to the top