ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chuck Holzwarth <chuck_holzwa...@yahoo.com>
Subject Re: Depends="init" problem
Date Mon, 16 Jun 2008 20:38:57 GMT
Try what I use:

<target name="__init" unless="init_has_run">
<property name="init_has_run" value="true"/>
...
</target>

 Thank you,
Chuck Holzwarth
(804) 403-3478 (home)
(804) 305-4040 (cell)



----- Original Message ----
From: Peter Reilly <peter.kitt.reilly@gmail.com>
To: Ant Users List <user@ant.apache.org>
Sent: Monday, June 16, 2008 7:49:42 AM
Subject: Re: Depends="init" problem

each <antcall> creates a new project, targets  in each project
are independent of targets with the same name in other projects.

Peter

On Mon, Jun 16, 2008 at 9:00 AM, Bourzeix, Hervé
<Herve.Bourzeix@genesys.com> wrote:
> You may have antcall in your code. Antcall don't pay attention to the depends list.
>
> regards,
>
> -----Original Message-----
> From: Guy Catz [mailto:Guy.catz@waves.com]
> Sent: Monday, June 16, 2008 9:50 AM
> To: user@ant.apache.org
> Subject: Depends="init" problem
>
> 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
>
>

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


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