ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36970] New: - Invalid return code in batch program
Date Fri, 07 Oct 2005 17:38:58 GMT
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: ahengle@blackbirdtech.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message