ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Benson <gudnabr...@yahoo.com>
Subject Re: keep going option
Date Mon, 13 Sep 2004 21:53:00 GMT
The <antcall>s take place within a single target in
the main buildfile.  That target (default) fails, then
your build would keep going.  Define your default
target like this:
<target name="default" depends="targetA,targetB" />

HTH,
Matt

--- Vadim Kazakov <VadimK@quadrus.com> wrote:

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



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

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


Mime
View raw message