Uploaded image for project: 'JS - JobScheduler'
  1. JS - JobScheduler
  2. JS-774

Spooler_program does not work with String-Argument

    XMLWordPrintable

Details

    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");
      }

      Attachments

        Activity

          People

            kb Klaus-Dieter Buettner (Inactive)
            kb Klaus-Dieter Buettner (Inactive)
            Oliver Haufe Oliver Haufe
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3 days
                3d
                Remaining:
                Remaining Estimate - 3 days
                3d
                Logged:
                Time Spent - Not Specified
                Not Specified