ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <Darin_Swan...@us.ibm.com>
Subject Ant 1.6 and -keep-going
Date Mon, 12 Jan 2004 18:49:43 GMT
I have been playing around with Ant 1.6 and the -keep-going option. It 
does not work as I would expect and I wanted to find out if I am 
misinterpreting this new functionality.

My test buildfile:


<project default="fails">
        <target name="fails">
                <jar jarfile="jar16.jar" basedir="doesNotExist"/>
        </target>
        <target name="echos">
                <echo>Still echo on failure</echo>
        </target>
</project>


As stated, the basedir for the jar task does not exist.
The output from the commandline:



C:\apache-ant-1.6.0\bin>ant -buildfile failingTarget.xml -keep-going fails 
echos
Buildfile: failingTarget.xml

fails:
Target 'fails' failed with message 'C:\apache-ant-1.6.0\bin\doesNotExist
not found.'.

BUILD FAILED
C:\apache-ant-1.6.0\bin\failingTarget.xml:3:C:\apache-ant-1.6.0\bin\doesNotExist 
not found.
Total time: 0 seconds


I would have expected that the echos target would have been still been 
executed as it does not depend on the fails target?

Thanks in advance
Darins

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message