I have committed the changes to fix this behavior.
I will be committing tests later to confirm my expectations, and so this
behavior doesn't change without notice again.
In short, things should work like
this:
--Targets specified on the command line, or
via the <nant> task, should execute like the dependencies of targets. That
is, they should not force execution of the chain of targets.
--The <call> task should execute the whole
chain of targets (including already executed dependencies)
Now, I've been told that Ant works the way that I
would consider ours to be buggy. All targets specified on the command line are
executed, including their dep. tree. This makes each target entry on the command
line work like a <call name="commandlinetarget">. This does allow for
something like this, "debug build release build", where you can specify that you
want to do a debug and release build (without having to specify this in the
build file).
Well, It is a little confusing how things should
work, but they now work like they used to.
|
- [nant-dev] Depends targets getting executed multiple times... Buc
- Re: [nant-dev] Depends targets getting executed multi... Scott Hernandez
- Scott Hernandez