New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

processing-java: Run in headless mode with --build #3998

Merged
merged 1 commit into from Oct 14, 2015

Conversation

Projects
None yet
2 participants
@myrjola
Contributor

myrjola commented Oct 14, 2015

Fixes #3996

Tested both running with and without --build. The fix works as expected. Running processing-java with the --build-option doesn't steal focus anymore.

This change makes the /usr/local/bin/processing-java shell script look like this for me:

#!/bin/sh

# We don't want to steal focus for headless runs. See issue #3996.
OPTION_FOR_HEADLESS_RUN=""
for ARG in "$@"
do
    if [ $ARG = "--build" ]; then
        OPTION_FOR_HEADLESS_RUN="-Djava.awt.headless=true"
    fi
done

cd "/Users/martin/git/processing/build/macosx/work/Processing.app/Contents/Java" && /Users/martin/git/processing/build/macosx/work/Processing.app/Contents/PlugIns/jdk1.8.0_51.jdk/Contents/Home/jre/bin/java -Djna.nosys=true $OPTION_FOR_HEADLESS_RUN -cp "ant-launcher.jar:ant.jar:core.jar:jna.jar:pde.jar:core/library/core.jar:core/library/gluegen-rt-natives-linux-amd64.jar:core/library/gluegen-rt-natives-linux-armv6hf.jar:core/library/gluegen-rt-natives-linux-i586.jar:core/library/gluegen-rt-natives-macosx-universal.jar:core/library/gluegen-rt-natives-windows-amd64.jar:core/library/gluegen-rt-natives-windows-i586.jar:core/library/gluegen-rt.jar:core/library/jogl-all-natives-linux-amd64.jar:core/library/jogl-all-natives-linux-armv6hf.jar:core/library/jogl-all-natives-linux-i586.jar:core/library/jogl-all-natives-macosx-universal.jar:core/library/jogl-all-natives-windows-amd64.jar:core/library/jogl-all-natives-windows-i586.jar:core/library/jogl-all.jar:modes/java/mode/antlr.jar:modes/java/mode/classpath-explorer-1.0.jar:modes/java/mode/com.ibm.icu.jar:modes/java/mode/JavaMode.jar:modes/java/mode/jdi.jar:modes/java/mode/jdimodel.jar:modes/java/mode/jdtCompilerAdapter.jar:modes/java/mode/jsoup-1.7.1.jar:modes/java/mode/org.eclipse.core.contenttype.jar:modes/java/mode/org.eclipse.core.jobs.jar:modes/java/mode/org.eclipse.core.resources.jar:modes/java/mode/org.eclipse.core.runtime.jar:modes/java/mode/org.eclipse.equinox.common.jar:modes/java/mode/org.eclipse.equinox.preferences.jar:modes/java/mode/org.eclipse.jdt.core.jar:modes/java/mode/org.eclipse.osgi.jar:modes/java/mode/org.eclipse.text.jar:modes/java/mode/org.netbeans.swing.outline.jar" processing.mode.java.Commander "$@"

benfry added a commit that referenced this pull request Oct 14, 2015

Merge pull request #3998 from myrjola/headlesswhenbuild
processing-java: Run in headless mode with --build

@benfry benfry merged commit 5499625 into processing:master Oct 14, 2015

@processing processing deleted a comment from ellenlowing Jul 19, 2018

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jul 19, 2018

Member

(Removed non-relevant comment, locking post)

Member

benfry commented Jul 19, 2018

(Removed non-relevant comment, locking post)

@processing processing locked as off topic and limited conversation to collaborators Jul 19, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.