ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Kazakov" <Vad...@quadrus.com>
Subject keep going option
Date Mon, 13 Sep 2004 21:48:40 GMT
I'm trying to get this option to work, but ant doesn't really seem to
keep going. I'm trying the following build file

<project name="Proj" default="Default" basedir=".">

            <target name="Default">

                        <antcall target="targetA" />

                        <antcall target="targetB" />

            </target>

            

            <target name="targetA">

                        <exec executable="a"/>

            </target>

            

            <target name="targetB">

                        <echo message="Great" />

            </target>

</project>

 

Since executable a doesn't exist I expect running ant with the -k option
will fail executing, but will print out the message "Great". However
this is the output I get:

Buildfile: build.xml

 

Default:

 

targetA:

Target 'targetA' failed with message 'Execute failed:
java.io.IOException: CreateProcess: a error=2'.

Target 'Default' failed with message 'Following error occured while
executing this line

C:\Documents and Settings\vadimk\My Documents\Ant Tests\build.xml:8:
Execute failed: java.io.IOException: CreateProcess: a error=2'.

 

BUILD FAILED

C:\Documents and Settings\vadimk\My Documents\Ant Tests\build.xml:3:
Following error occured while executing this line

C:\Documents and Settings\vadimk\My Documents\Ant Tests\build.xml:8:
Execute failed: java.io.IOException: CreateProcess: a error=2

 

Which isn't overly different from the output without the -k option:

Buildfile: build.xml

 

Default:

 

targetA:

 

BUILD FAILED

C:\Documents and Settings\vadimk\My Documents\Ant Tests\build.xml:3:
Following error occured while executing this line

C:\Documents and Settings\vadimk\My Documents\Ant Tests\build.xml:8:
Execute failed: java.io.IOException: CreateProcess: a error=2

 

has anybody successfully used this option? Can anybody give me an
example of a build file that would work?

 

Vadim Kazakov

Software Deployment Specialist

Quadrus Financial Technologies Inc.

ph: 257-0850 cell: 861-6893

 


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