ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darin Swanson <>
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 name="echos">
                <echo>Still echo on failure</echo>

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 
Buildfile: failingTarget.xml

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

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

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