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.
 
----- Original Message -----
Sent: Monday, December 08, 2003 11:27 AM
Subject: Re: [nant-dev] Depends targets getting executed multiple times in 8.4

Yes, I can confirm this behavior in cvs. This is a bug... :(
----- Original Message -----
From: Buc
Sent: Monday, December 08, 2003 4:24 AM
Subject: [nant-dev] Depends targets getting executed multiple times in 8.4

Reply via email to