ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <zod...@holoweb.net>
Subject Re: Maintaining dependencies across antcalls
Date Mon, 02 Sep 2002 21:55:10 GMT
Erm, yes, that's the point. I want to be able to declare my dependencies
(for example, so that I can expect 'ant worker' to work as well as 'ant
master') without getting required targets executed repeatedly.

L.

On 9/2/02 5:49 PM, "Nicola Ken Barozzi" <nicolaken@apache.org> wrote:

> 
> 
> Laurie Harper wrote:
>> Is there a way to use antall or something similar that maintains the
>> dependency graph? For example, if I have:
>> 
>> <project name="..." default="master">
>>   <target name="init">
>>     <echo message="init"/>
>>   </target>
>>   <target name="worker" depends="init">
>                          ^^^^^^^^^^^^^^^^^
>   <target name="worker">
> 
>>     <echo message="worker: ${x}"/>
>>   </target>
>>   <target name="master" depends="init">
>>     <antcall target="worker"><param name="x" value="y"/></antcall>
>>     <antcall target="worker"><param name="x" value="z"/></antcall>
>>   </target>
>> </project>
>> 
>> Then running ant causes 'init' to be invoked 3 times. I only want it to be
>> executed once.


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


Mime
View raw message