Program Exit Codes

Phing is script-safe - means that you can execute Phing and Configure within a automated script context. To check back the success of a Phing call it returns an exit code that can be captured by your calling script. The following list gives you details on the used exit codes and their meaning.

Table 23. Program Exit Codes

Exitcode Description
-2 Environment not properly defined
-1 Parameter or configuration error occurred
0 Successful execution (build succeeded), no errors (there may be warnings)
1 Unsuccessful execution (build failed), errors occurred