At 12:31 15/12/00 -0700, James Bucanek wrote:
>Greetings,
>
>I just started working with Ant this week, and have run across a
>potential annoyance.
>
>It appears that Ant only builds one target at a time. So when
>building multiple targets, Ant builds each target successively. The
>result being that any common targets are executed multiple times.
>
>I've found a hack around this:
>
> <target name="init" unless="init.complete">
> <echo message="init executing..."/>
> <tstamp/>
> <property name="init.complete" value="true"/>
> </target>
>
>So, is there some other way of either (a) keeping tasks from running
>more than once or (b) building the entire tree of targets to be built
>in one pass?
The only real way to do it is to add another target to project that lists
all targets you want to run in depends tag.
Cheers,
Pete
*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof." |
| - John Kenneth Galbraith |
*-----------------------------------------------------*