|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 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") + " ":"")
|