ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Green" <chris.green...@googlemail.com>
Subject Re: Depends="init" problem
Date Mon, 16 Jun 2008 08:03:31 GMT
I use something like :-

 <target name="all" depends="init, a, b, c" description="Initialise, a,
b,c">
 </target>

and then have the four targets init, a, b and c doing whatever.

Regards
Chris
On Mon, Jun 16, 2008 at 9:50 AM, Guy Catz <Guy.catz@waves.com> 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.
>

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