why, oh why? what was broken w/ force= ?
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Gert Driesen > Sent: Thursday, November 20, 2003 10:00 > To: Breen, Patrick; [EMAIL PROTECTED] > Subject: Re: [Nant-users] Incorrect dependency evaluation? > > > Patrick, > > This behaviour has indeed changed in the 0.8.4 release, and > is documented as a breaking change in the 0.8.4 change log / > release notes (http://nant.sourceforge.net/changelog.html). > > The <call> task has been changed to always execute the given > target, and all its dependencie, regardless of the value of > the force attribute. > > To only execute a given target (and its dependencies) once, > you should use the depends attribute. > > Hope this helps, > > Gert > > ----- Original Message ----- > From: "Breen, Patrick" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, November 20, 2003 3:46 PM > Subject: [Nant-users] Incorrect dependency evaluation? > > > In version 0.8.4 when a target is defined with a dependency > that calls another target with the same dependency, the > target is executed a second time. In version 0.8.3, the > target was only executed once. Which is the proper / desired > behavior? The build scripts we have were counting on the > 0.8.3 behavior, but its simple enough to add a property that > prevents the second execution if the new behavior is the > correct implementation. > > Here's an example. The target "common-target" is executed > twice in this example. > > BUILDFILES: > > <?xml version="1.0"?> > <project name="Test" default="buildall" basedir="."> > > <target name="buildall" depends="common-target"> > <echo message="buildall evaluated" /> > <call target="build" /> > </target> > > <target name="common-target"> > <echo message="common-target evaluated" /> > </target> > > <target name="build" depends="common-target"> > <echo message="build evaluated" /> > </target> > > </project> > > OUTPUT: > > NAnt version 0.8.4 Copyright (C) 2001-2003 Gerry Shaw http://nant.sourceforge.net Buildfile: file:///C:/test.build Target(s) specified: buildall common-target: [echo] common-target evaluated buildall: [echo] buildall evaluated common-target: [echo] common-target evaluated build: [echo] build evaluated BUILD SUCCEEDED Total time: 0.2 seconds. ------------------------------------------------------- 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 ------------------------------------------------------- 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 ------------------------------------------------------- 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