ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michaël Smith" <>
Subject Possible bug with failonerror attribute of exec task
Date Thu, 01 Feb 2001 15:49:19 GMT
I believe I have found a bug with the failonerror attribute of the exec 
task.  Here is part of my build.xml:

   <target name="test">
        <echo message=""/>
        <echo message="-- Building and executing tests:"/>
        <echo message=""/>
        <exec dir="../../../${project.vob}/${}/build" 
executable="test.bat" os="Windows 2000" failonerror="True"/>

For the failonerror I tried "true" "True" "yes" "Yes".  I'm not sure which 
is correct because it's not documented.  Here is my batch file:

dir asdf
echo errorlevel = %ERRORLEVEL%

This always has errorlevel = 1.

Finally the output of my build:

Ant version 1.2 compiled on October 24 2000

Buildfile: build.xml
Detected Java Version: 1.3
Detected OS: Windows 2000
Project base dir set to: Z:\Common\catapult\bin
Build sequence for target `test' is [test]
Complete build sequence is [test, init, shutdown_test_environment, tests, 
build_tar, deploy_tar, init_test_environment, clean, usage, label, build]

-- Building and executing tests:

     [exec] Myos = Windows 2000
     [exec] test.bat
     [exec] Fichier introuvable
     [exec] Z:\customer_registry\customer\build>dir asdf
     [exec]  Le volume dans le lecteur Z s'appelle CCase
     [exec]  Le num&#8218;ro de s&#8218;rie du volume est 0234-5789
     [exec]  R&#8218;pertoire de Z:\customer_registry\customer\build
     [exec] Z:\customer_registry\customer\build>echo errorlevel = 1
     [exec] errorlevel = 1


Total time: 1 second


Get Your Private, Free E-mail from MSN Hotmail at

View raw message