DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=42588>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=42588 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|1.7.1 |--- ------- Additional Comments From [EMAIL PROTECTED] 2007-06-05 06:47 ------- - The exit codes vary from platform to platform...even if we exit -1 on Java, on a SYSV system that would come out as 255. - similarly, if java itself fails, its with whatever reason java chose to fail. these are platform specific. - Partly its laziness, we'd have to find every constructor of ExitStatus and determine which error code is raised. - and finally its complexity: there is nothing to stop tasks triggering an exit if they try hard enough (throwing their own ExitStatus). So all we could do at best it make a list of some possible failures you may see, with the caveats that they may different on different platforms/java versions. The 0==success rule is the only thing we can guarantee. if you are debugging, I suggest you look at the following classes for more details of what is going on. http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/launch/Launcher.java?view=markup http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/Main.java?view=markup http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/ExitStatusException.java?view=markup Peter: Launcher exits with a 2 for trouble, Main with a 1. so you can sort of determine the origin...those values may be different by the time they go through the .bat file though, the win9x one loses most of the data. Someone could volunteer to define some exit codes, preferably in AntMain, as the launcher imports that file. We'd then be able to have have the built in exit codes formalised in the javadocs. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]