ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Reilly <peter.rei...@corvil.com>
Subject Re: Ant 1.6 and -keep-going
Date Mon, 12 Jan 2004 18:57:01 GMT
This does looks like a bug...
Please enter one in bugzilla.

A work-around is to do the following:

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


Peter

Darin Swanson wrote:

>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
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message