You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2010/12/21 20:23:15 UTC

DO NOT REPLY [Bug 50506] Ant Exec task is not failing in windows while running bat file

https://issues.apache.org/bugzilla/show_bug.cgi?id=50506

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Antoine Levy-Lambert <an...@apache.org> 2010-12-21 14:23:11 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.