Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-393

Unclear how to pass job parameters to org.jberet.se.Main class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Final
    • 1.3.0.Beta7
    • jberet-se
    • None

      When running org.jberet.se.Main to start a job in Java SE with incorrect options, you get:

      Unable to find source-code formatter for language: text. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      Usage: java -classpath ... -Dkey1=val1 ... org.jberet.se.Main jobXML
      The following application args are invalid:
      

      It's not clear how to pass batch job parameters to this class. And from the above help message, users may mistakenly think java system properties are used as job parameters. In fact, job parameters are passed in as java command-line application args.

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: