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 A.3: Program Exit Codes
|Environment not properly defined|
|Parameter or configuration error occurred|
|Successful execution (build succeeded), no errors (there may be warnings)|
|Unsuccessful execution (build failed), errors occurred|