ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sandeep Kumar K <sand...@genevasoftech.com>
Subject Re: Depends="init" problem
Date Mon, 16 Jun 2008 08:24:03 GMT
That is because your tasks a,b,c are depending on Task "init"
That means before executing target a, target "init" will be executed. 
same for Target b & c.
Thats why init will be executed thrice.

Thanks & Regards
Sandeep Kumar K
Sr. Software Engineer
Geneva Software Technologies Limited,
# 82, Research Center II, I floor, EPIPA
Nallurhalli, Whitefield, Bangalore - 560066
Mob  :  +91-9880193454



Guy Catz wrote:
> I have several targets, all depends on init -
>
> <target name="a" depends="init">
> ...
>
> <target name="b" depends="init">
> ...
>
> <target name="c" depends="init">
> ...
>
> and of course <target name="init">
> ...
>
>
> Now, I also have a target which call a, then b and then c.
> But when I run that ANT, the output is something like this -
> running <init> -     successful
> running <a> -        successful
> running <init> -     successful
> running <b> -        successful
> running <init> -     successful
> running <c> -        successful
>
> which means that Init ran 3 times!! instead of only once.
>
> I do I make it to run only once?
>
> Please advise.
>
> Thanks,
>     Guy.
>
>
>
>
>   

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


Mime
View raw message