John you are doing a great job documenting stuff about nant but what you have a slight 
error on your Effective NAnt article.
http://www.iunknown.com/Weblog/EffectiveNAnt.html

NAnt evaluates properties at time of execution (very early versions didn't) so you 
should easily be able to have a target called with a different property.  The problem 
is that by default nant will not execute a target if it has already been called.  You 
can override this with the force attribute on the call task.

ie,

<project default="build">
        <target name="compile">
                <echo message="compiling with debug = ${debug}"/>
        </target>

        <target name="build">
                <property name="debug" value="false"/>
                <call target="compile"/>

                <property name="debug" value="true"/>
                <call target="compile" force="true"/> <!-- notice the force attribute 
-->
        </target>
</project>

I will add this example to the CallTask documentation.


-------------------------------------------------------
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members!
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to