ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Qazwart <qazw...@gmail.com>
Subject Re: Running another target - can it be done?
Date Thu, 31 May 2007 04:04:42 GMT
Have you looked at <ant> and <antcall>?

These allow you to call another target from inside of another target:

<target name="num2">
     ...
     <antcall target="num1"/>
</target>


On May 30, 2007, at 3:15 PM, yitzle wrote:

> I know. This is not something that you would usually want to do. But
> I'm sure there is at least 3 valid cases where this would be correct.
>
> 1:	<target name="num1" >
> 2:		...
> 3:	</target>
> 4:
> 5:	<target name="num2">
> 6:		...
> 7:**		<RUN NUM1>		**
> 8:	</target>
> 9:
> 10:	<target name="num3" depends="num2,num1" />
>
> I want to basically replace line 10 with something at line 7. Does  
> it exist?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>

David Weintraub
david@weintraub.name
qazwart@gmail.com



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


Mime
View raw message