FWIW - this is how I changed things to implement an "execute only once"
idiom within a target:

        <target name="common-build-init" description="Set common build
properties">
                <!-- 
                Check if we've been here before...
                -->
                <ifnot propertyexists="build.init">

                        <!-- 
                        DO ONE TIME ONLY STUFF HERE 
                        -->

                        <!-- 
                        Create a property (or set a known property to
true) to prevent re-execution 
                        -->
                        <property name="build.init" value="true"/>
                </ifnot>
        </target>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to