# 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
# 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
set LOCALCLASSPATH=%FOP_HYPHENATION_PATH%\r
for %%l in (%LOCAL_FOP_HOME%build\*.jar %LIBDIR%\*.jar) do set LOCALCLASSPATH=!LOCALCLASSPATH!;%%l\r
\r
-set JAVAOPTS=-Denv.windir=%WINDIR% -Djava.awt.headless=true\r
+set JAVAOPTS=-Denv.windir=%WINDIR%\r
\r
if "%JAVA_HOME%" == "" goto noJavaHome\r
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome\r
\r
// rpm_mode is irrelevant on Windows\r
// var rpm_mode=true;\r
-var java_exec_args = "-Djava.awt.headless=true";\r
var fop_exec_args = "";\r
var no_config=false;\r
var fop_exec_debug=false;\r
WScript.Echo("keepopen: " + keep_open);\r
WScript.Echo("noconfig: " + no_config);\r
WScript.Echo("help: " + show_help);\r
- WScript.Echo("java arguments: " + java_exec_args);\r
WScript.Echo("fop arguments: " + fop_exec_args);\r
}\r
}\r
// Execute fop via shell.Exec\r
function fop_exec() {\r
var fop_exec_command = "\"" + javacmd + "\" "\r
- + java_exec_args + " "\r
+ (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"")\r
+ (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"")\r
+ (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"")\r
function fop_run() {\r
var fop_exec_command = "cmd /" + (keep_open?"K":"C") + " \""\r
+ "\"" + javacmd + "\" " \r
- + java_exec_args + " "\r
+ (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"")\r
+ (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"")\r
+ (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"")\r