ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50506] Ant Exec task is not failing in windows while running bat file
Date Tue, 21 Dec 2010 19:23:38 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50506

Antoine Levy-Lambert <antoine@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |INVALID

--- Comment #2 from Antoine Levy-Lambert <antoine@apache.org> 2010-12-21 14:23:36 EST
---
Most likely you should change build.bat to do this

call ant -f build.xml

instead of just

ant -f build.xml

with the keyword call your build.bat will wait until ant.bat has finished and
capture its error level.

If this does not work just right on your version of Windows you can add another
line right after

call ant -f build.xml
exit /B %errorlevel%

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Mime
View raw message