patrick, i understand and i thought of that, but it means the caller can't control whether common-build-init can run again. it's become common-build-init-run-once-only-ever-amen and that's a loss. now, if we could disappear existing props... is this in place?
jean > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Breen, Patrick > > 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