From 67b05aa1dde10b581428a70ed951396bd4a37c6e Mon Sep 17 00:00:00 2001 From: Glenn Adams Date: Fri, 13 Apr 2012 06:28:25 +0000 Subject: Bugzilla #50062: Invoke JVM in headless mode from FOP command scripts and JS shell to prevent stealing focus from GUI applications. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1325624 13f79535-47bb-0310-9956-ffa450edef68 --- fop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fop') diff --git a/fop b/fop index 3f2ac6f7d..aca642be7 100755 --- a/fop +++ b/fop @@ -18,6 +18,7 @@ # Shell script to run FOP, adapted from the Jakarta-Ant project. rpm_mode=true +java_exec_args="-Djava.awt.headless=true" fop_exec_args= no_config=false fop_exec_debug=false @@ -247,7 +248,7 @@ fi # Execute FOP using eval/exec to preserve spaces in paths, # java options, and FOP args -fop_exec_command="exec \"$JAVACMD\" $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args" +fop_exec_command="exec \"$JAVACMD\" $java_exec_args $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args" if $fop_exec_debug ; then echo $fop_exec_command fi -- cgit v1.2.3