MacOS X Application Bundle Conversion
This is some work in progress documentation on how to convert an Eclipse RCP product directory to a proper MacOS X application bundle as any mac user would expect it.
- move .eclipseproduct, configuration, features, plugins and startup.jar (i.e. every file and directory except trex.app) from the rcp directory to trex.app/Contents/Resources
- In trex.app/Contents/Info.plist, under <key>Eclipse</key><array> add the following line: <string>-configuration</string><string>~/.trex/configuration/</string>
- In trex.app/Contents/Info.plist, under <key>Eclipse</key><array>, modify <string>startup</string> to reflect the new location of startup.jar, i.e. use the line <string>-startup</string><string>../Resources/startup.jar</string> instead!
- In trex.app/Contents/Resources/configuration/config.ini, add the following line: osgi.instance.area.default=@…/Documents/workspace
- In trex.app/Contents/MacOS/trex.ini, modify the line with -Xbootclasspath as follows: -Xbootclasspath/p:../Resources/plugins/org.eclipse.jdt.debug_3.2.0.v20060605/jdi.jar
- In trex.app/Contents/Resources, create a directory "links" and in this directory, create a file local.link. The content of local.link should be path=~/.trex
- In ~/.trex, create a directory "eclipse" and under "eclipse", the directories "plugins" and "features". In "eclipse", create the file .eclipseextension with the content: id=trex local extensions version=1.0.0
problem: how should the ~/.trex directory be created? it certainly won't be created automatically. Maybe the launcher must be patched.
