You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Ronny Næss <Ro...@ergo.no> on 2001/08/22 17:13:49 UTC
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
Re: BUG maybe?
Posted by Peter Donald <do...@apache.org>.
Not a bug - a feature. Depends lists dependencies and once it has been
satisfied there is no need to run dependency again.
It is designed to work that way. Personally I would rework your build system
to not have multiple builds sharing same directory. Another option would be
to use antcall which will rececute targets.
On Thu, 23 Aug 2001 01:13, Ronny Næss wrote:
> 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
--
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 *
*-----------------------------------------------------*
Re: BUG maybe?
Posted by Don Taylor <do...@yahoo.com>.
Most of us consider this a feature! :)
-- Don
--- Ronny_N�ss <Ro...@ergo.no> wrote:
> 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
__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/