git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1325624 13f79535-47bb-0310-9956-ffa450edef68tags/fop-1_1rc1old
# Shell script to run FOP, adapted from the Jakarta-Ant project. | # Shell script to run FOP, adapted from the Jakarta-Ant project. | ||||
rpm_mode=true | rpm_mode=true | ||||
java_exec_args="-Djava.awt.headless=true" | |||||
fop_exec_args= | fop_exec_args= | ||||
no_config=false | no_config=false | ||||
fop_exec_debug=false | fop_exec_debug=false | ||||
# Execute FOP using eval/exec to preserve spaces in paths, | # Execute FOP using eval/exec to preserve spaces in paths, | ||||
# java options, and FOP args | # 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 | if $fop_exec_debug ; then | ||||
echo $fop_exec_command | echo $fop_exec_command | ||||
fi | fi |
set LOCALCLASSPATH=%FOP_HYPHENATION_PATH% | set LOCALCLASSPATH=%FOP_HYPHENATION_PATH% | ||||
for %%l in (%LOCAL_FOP_HOME%build\*.jar %LIBDIR%\*.jar) do set LOCALCLASSPATH=!LOCALCLASSPATH!;%%l | for %%l in (%LOCAL_FOP_HOME%build\*.jar %LIBDIR%\*.jar) do set LOCALCLASSPATH=!LOCALCLASSPATH!;%%l | ||||
set JAVAOPTS=-Denv.windir=%WINDIR% | |||||
set JAVAOPTS=-Denv.windir=%WINDIR% -Djava.awt.headless=true | |||||
if "%JAVA_HOME%" == "" goto noJavaHome | if "%JAVA_HOME%" == "" goto noJavaHome | ||||
if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome | if not exist "%JAVA_HOME%\bin\java.exe" goto noJavaHome |
// rpm_mode is irrelevant on Windows | // rpm_mode is irrelevant on Windows | ||||
// var rpm_mode=true; | // var rpm_mode=true; | ||||
var java_exec_args = "-Djava.awt.headless=true"; | |||||
var fop_exec_args = ""; | var fop_exec_args = ""; | ||||
var no_config=false; | var no_config=false; | ||||
var fop_exec_debug=false; | var fop_exec_debug=false; | ||||
WScript.Echo("keepopen: " + keep_open); | WScript.Echo("keepopen: " + keep_open); | ||||
WScript.Echo("noconfig: " + no_config); | WScript.Echo("noconfig: " + no_config); | ||||
WScript.Echo("help: " + show_help); | WScript.Echo("help: " + show_help); | ||||
WScript.Echo("java arguments: " + java_exec_args); | |||||
WScript.Echo("fop arguments: " + fop_exec_args); | WScript.Echo("fop arguments: " + fop_exec_args); | ||||
} | } | ||||
} | } | ||||
// Execute fop via shell.Exec | // Execute fop via shell.Exec | ||||
function fop_exec() { | function fop_exec() { | ||||
var fop_exec_command = "\"" + javacmd + "\" " | var fop_exec_command = "\"" + javacmd + "\" " | ||||
+ java_exec_args + " " | |||||
+ (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"") | + (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"") | ||||
+ (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"") | + (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"") | ||||
+ (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"") | + (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"") | ||||
function fop_run() { | function fop_run() { | ||||
var fop_exec_command = "cmd /" + (keep_open?"K":"C") + " \"" | var fop_exec_command = "cmd /" + (keep_open?"K":"C") + " \"" | ||||
+ "\"" + javacmd + "\" " | + "\"" + javacmd + "\" " | ||||
+ java_exec_args + " " | |||||
+ (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"") | + (config.Exists("JAVA_OPTS")?config.Item("JAVA_OPTS") + " ":"") | ||||
+ (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"") | + (config.Exists("LOGCHOICE")?config.Item("LOGCHOICE") + " ":"") | ||||
+ (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"") | + (config.Exists("LOGLEVEL")?config.Item("LOGLEVEL") + " ":"") |
documents. Example: the fix of marks layering will be such a case when it's done. | documents. Example: the fix of marks layering will be such a case when it's done. | ||||
--> | --> | ||||
<release version="FOP Trunk" date="TBD"> | <release version="FOP Trunk" date="TBD"> | ||||
<action context="Code" dev="GA" type="fix" fixes-bug="50062"> | |||||
Invoke JVM in headless mode from FOP command scripts and JS shell to prevent stealing focus from GUI applications. | |||||
</action> | |||||
<action context="Code" dev="GA" type="fix" fixes-bug="52114"> | <action context="Code" dev="GA" type="fix" fixes-bug="52114"> | ||||
Take leading derived space before/after into account when computing rows for TXT renderer. | Take leading derived space before/after into account when computing rows for TXT renderer. | ||||
</action> | </action> |