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=36970>. 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=36970 Summary: Invalid return code in batch program Product: Ant Version: 1.6.5 Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Core AssignedTo: dev@ant.apache.org ReportedBy: [EMAIL PROTECTED] I am using a bat program to invoke ant after setting some environment variables; then the following code to run and check the return code: call ant if errorlevel 1 ( set /A failed += 1 if "%ignore%" == "" goto bad ) Even though the results of the ant build say "BUILD SUCCESSFUL" the errorlevel returned is 1 and not 0. If I use the -v parameter to ant ("call ant -v") it returns the correct return code (0 on success, 1 on failure). -- 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]