summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Oberlies2012-04-13 04:59:00 (EDT)
committerTobias Oberlies2012-04-13 04:59:00 (EDT)
commit4628881816f8c6bb114d71d906ace206926f3ad4 (patch)
treee28b809dccbb181366f0981d915bd091371709a1
parent001de180ebde04f4cb96b54aa754b85df3861a75 (diff)
downloadrt.equinox.p2-4628881816f8c6bb114d71d906ace206926f3ad4.zip
rt.equinox.p2-4628881816f8c6bb114d71d906ace206926f3ad4.tar.gz
rt.equinox.p2-4628881816f8c6bb114d71d906ace206926f3ad4.tar.bz2
316028 Create symlink to executable for Mac productsv20120413-0859
Bug: 316028 - [publisher] EquinoxExecutableAction should create for macos a symlink to the executable
-rw-r--r--bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxExecutableAction.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxExecutableAction.java b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxExecutableAction.java
index 9f71043..9cd4e35 100644
--- a/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxExecutableAction.java
+++ b/bundles/org.eclipse.equinox.p2.publisher.eclipse/src/org/eclipse/equinox/p2/publisher/eclipse/EquinoxExecutableAction.java
@@ -177,6 +177,7 @@ public class EquinoxExecutableAction extends AbstractPublisherAction {
String execName = execDescriptor.getExecutableName();
String appName = guessMacAppName(execName);
configurationData += " chmod(targetDir:${installFolder}/" + appName + ".app/Contents/MacOS/, targetFile:" + execName + ", permissions:755);"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ configurationData += " ln(targetDir:${installFolder}, linkTarget:" + appName + ".app/Contents/MacOS/" + execName + ", linkName:" + execName + ");"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
} else if (!Constants.OS_WIN32.equals(os)) {
// We are on linux/unix. by default set all of the files to be executable.
File[] fileList = execDescriptor.getFiles();