Details
-
Fix
-
Status: Approved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
None
-
see j:\e\java\development\JSDebugging
Description
The constructor works with a string-array but with a string no parameters are passed to the scheduler.
public static void main(String[] args) {
// TODO Auto-generated method stub
// String base = "./config/";
// String base = "C:/Users/KB/sos-berlin.com/jobscheduler/scheduler/";
String base = "J:/E/java/development/JSDebugging/";
String strConfigBase = "J:/E/java/development/JSDebugging/";
// System.out.println("current path = " + );
String strCommandLine = "-id=JSDebugger" + " -ini=" + base + "factory.ini " + " -sos.ini=" + base + "sos.ini " + " -config=" + base
+ "JSDebugger.scheduler.xml " +
" -include-path=. " +
" -param=" + base + " -cd=" + base + " -log=./logs/scheduler.log " +
// "-log-dir=j:/e/java/subito/logs");
" -log-dir=*stderr";
System.out.println(strCommandLine);
String[] strArgV = new String[]
{"-id=JSDebugger", // JobScheduler ID "-config=" + base + "config/JSDebugger.scheduler.xml" , // Configuration file "-ini=" + strConfigBase + "config/factory.ini" , // another config-file "-sos.ini=" + strConfigBase + "config/sos.ini" , "-include-path=." , "-param=" + base , "-log=" + strConfigBase + "logs/scheduler.log" , "-log-dir=*stderr" , // redirect the log output to the console window of eclipse "-reuse-port", // to avoid 2 minutes wait for releasing the port // "-env=SCHEDULER_HOME=" + System.getProperty("user.dir") , // set environment variable // "-env=SCHEDULER_DATA=" + System.getProperty("user.dir") , "-cd=" + base };
@SuppressWarnings("unused")
Spooler_program objSP = new Spooler_program(strArgV);
// Spooler_program objSP = new Spooler_program(strCommandLine);
// Spooler_program objSP = new Spooler_program("-id=JSDebugger");
}