Check out the "force" attribute for the call task in the documentation.

Normally, a target only needs to run once (targets usually represent
some set of compilation tasks and once something is compiled, there's no
need to do it again later.  You can override this behavior with the
"force" attribute on the call task.

 -----Original Message-----
From: Brant Carter [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 2:00 PM
To: [EMAIL PROTECTED]
Subject: [Nant-users] Executing a target more than once

It seems that a target will only get executed once in any project.

Example:

<project name="test" default="test">

        <target name="test">
                <echo message="in test"/>
                <call target="test1"/>
                <call target="test2"/>
        </target>

        <target name="test1">
                <echo message="in test1"/>
                <call target="test2"/>
        </target>

        <target name="test2">
                <echo message="in test2"/>
        </target>


</project>

The output from this is


test:

     [echo] in test

test1:

     [echo] in test1

test2:

     [echo] in test2


Not
Test 1
Test 2
Test 2 <-This one is missing.

Is there anyway to force a target to be excuted more than once?

brant
...

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click
here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
at the same time. Free trial click here:http://www.vmware.com/wl/offer/358/0
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to