This repository was archived by the owner on Feb 4, 2023. It is now read-only.
  
  
  
  
  
Description
I use your script to build an SWT application. This requires the JVM option -XstartOnFirstThread to be set. Jarbundler supports this by means of the startOnMainThread boolean option. You script ignores it when collecting the JVM options.
I have "patched" the script for my purposes by adding the following lines to the end of the "Apple style" parsing of Info.plist (at line 157):
# read StartOnMainThread
JVMStartOnMainThread=`/usr/libexec/PlistBuddy -c "print :Java:StartOnMainThread" "${InfoPlistFile}" 2> /dev/null`
if [ "${JVMStartOnMainThread}" == "true" ]; then
    JVMOptions+=" -XstartOnFirstThread"
fi  
It works for me, but since I'm not really fluent in bash scripting, this may not be the most elegant way to include the functionality.