Skip to content
This repository was archived by the owner on Feb 4, 2023. It is now read-only.
This repository was archived by the owner on Feb 4, 2023. It is now read-only.

Consider jarbundler option "startOnMainThread" #4

@wrstlbrnft

Description

@wrstlbrnft

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions