Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Gant itself issues the following return codes:


Successful completion.


Command line options processing problem.


Gant file parsing problem.


Speficied Gant file not found (1.0.2-SNAPSHOT and later, previosuly 1 is returned for this error).


Unknown target.


Attempt to call undefined default target.


Gant file execution error.

Always uising negative numbers for return codes generated by Gant means that any and all positive integers can be used by the sctip to communicate not successful return codes.

The final value of the first initiated target is the return value from Gant.  So as a trivial example:

Code Block
 target ( alwaysFails : 'This target never succeeds.' ) { 27 }

 would always return the value 27 and so, by convention, never succeeds -- returning 0 is the only way of indicating success.