ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Dyke <>
Subject RE: BUG maybe?
Date Wed, 22 Aug 2001 15:27:34 GMT
Targets never get called twice 
(see Targets under Using Ant at

You can probably use <antcall> to call a target multiple times
(i.e. do this at the end of the war target, then at the end
of the ear target etc.)

Have a look at the ant docs for antcall.


> -----Original Message-----
> From: Ronny Næss []
> Sent: 22 August 2001 16:14
> To: ''
> Subject: BUG maybe?
> Hi.
> I think I might have found a bug.
> I have made several targets in our build.xml file and several 
> targets that
> depends on other targets. 
> The problem seems to be that no target can be run twice or 
> more within one
> execution or one build if you prefer.
> Example.
> <target name="wed" depends="war,ear,deploy"...
> Since war and ear both uses the /build dir i need to do some cleaning,
> meaning that the build dir must be deleted.
> This could be done like this(at least I thought):
> <target name="wed" depends="war,clean,ear,clean,deploy,clean"...
> The problem is that clean is only executed once. There is no 
> change if i
> include the clean as an dependency within the targets war and/or ear.
> It executes only the first time, regardless of what i do!
> Help please :-)
> Thanks
> -Ronny

This e-mail, and any attachment, is confidential. If you have received
it in error, please delete it from your system, do not use or disclose
the information in any way, and notify me immediately. The contents of
this message may contain personal views which are not the views of the
BBC, unless specifically stated.

View raw message