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

Exit code 0 when org.jberet.se.Main failed to start a job

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 1.3.0.Beta7
    • jberet-se

      when org.jberet.se.Main failed to start a job due to missing applicatino args, the exit status should be non-zero to indicate the failure.

      This is how it currently shows:

      /Users/cfang/dev/jsr352/jberet-se > java -cp "$HOME/jberet/lib/*:target/test-classes/" org.jberet.se.Main
      Mar 19, 2018 9:49:23 AM org.jberet.se.Main usage
      ERROR: JBERET050501: Usage:
      java -classpath ... [other java options] org.jberet.se.Main jobXMLName [jobParameter1=value1 jobParameter2=value2 ...]
      The following application args are invalid: []
      /Users/cfang/dev/jsr352/jberet-se > echo $?
      0

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

                Created:
                Updated: