Browning, Don wrote:

> [...] the first time I run the target everything executes fine, but the
> second time I call that same target, nothing happens.

I believe this to be by design. I ran into this too, but didn't send an
e-mail, for the simple reason that I decided I was using NAnt in a way that
it was not (and should not be) designed for.

The difference is between that of "target" and "subroutine". In our desired
use, we're treating it like a subroutine, but it's not. Targets should build
their results and be done. If something else requires a target that's
already built, it shouldn't get built again. NAnt keeps track of this, and
your second call is "ignored" (that target has already been built).

The solution I chose was to a second build file, and instead invoke that
with command line arguments that told the second build file exactly what it
was doing. This works perfectly.

Brad

--
Read my web log at http://www.quality.nu/dotnetguy/


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to