From: Mehdi Houshmand Date: Wed, 26 Sep 2012 08:50:07 +0000 (+0000) Subject: Bugzilla#53887: A revert of r1325624 as the java.awt.headless JVM argument should... X-Git-Tag: fop-2_0~290 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=182bbad662b45ecc15e2cc3d3de6cde7bdc77bea;p=xmlgraphics-fop.git Bugzilla#53887: A revert of r1325624 as the java.awt.headless JVM argument should be enabled by the user git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1390331 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/fop b/fop index aca642be7..3f2ac6f7d 100755 --- a/fop +++ b/fop @@ -18,7 +18,6 @@ # 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 @@ -248,7 +247,7 @@ fi # Execute FOP using eval/exec to preserve spaces in paths, # java options, and FOP args -fop_exec_command="exec \"$JAVACMD\" $java_exec_args $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args" +fop_exec_command="exec \"$JAVACMD\" $LOGCHOICE $LOGLEVEL -classpath \"$LOCALCLASSPATH\" $FOP_OPTS org.apache.fop.cli.Main $fop_exec_args" if $fop_exec_debug ; then echo $fop_exec_command fi diff --git a/fop.bat b/fop.bat index 54e93cca4..3a0538d5e 100644 --- a/fop.bat +++ b/fop.bat @@ -58,7 +58,7 @@ set LIBDIR=%LOCAL_FOP_HOME%lib set LOCALCLASSPATH=%FOP_HYPHENATION_PATH% for %%l in (%LOCAL_FOP_HOME%build\*.jar %LIBDIR%\*.jar) do set LOCALCLASSPATH=!LOCALCLASSPATH!;%%l -set JAVAOPTS=-Denv.windir=%WINDIR% -Djava.awt.headless=true +set JAVAOPTS=-Denv.windir=%WINDIR% if "%JAVA_HOME%" == "" goto noJavaHome if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome diff --git a/fop.js b/fop.js index 34bd390e2..f92d06b4c 100644 --- a/fop.js +++ b/fop.js @@ -18,7 +18,6 @@ // rpm_mode is irrelevant on Windows // var rpm_mode=true; -var java_exec_args = "-Djava.awt.headless=true"; var fop_exec_args = ""; var no_config=false; var fop_exec_debug=false; @@ -63,7 +62,6 @@ function read_args() { WScript.Echo("keepopen: " + keep_open); WScript.Echo("noconfig: " + no_config); WScript.Echo("help: " + show_help); - WScript.Echo("java arguments: " + java_exec_args); WScript.Echo("fop arguments: " + fop_exec_args); } } @@ -222,7 +220,6 @@ function get_local_classpath() { // Execute fop via shell.Exec function fop_exec() { var fop_exec_command = "\"" + javacmd + "\" " - + java_exec_args + " " + (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"") + (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"") + (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"") @@ -255,7 +252,6 @@ function fop_exec() { function fop_run() { var fop_exec_command = "cmd /" + (keep_open?"K":"C") + " \"" + "\"" + javacmd + "\" " - + java_exec_args + " " + (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"") + (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"") + (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"")