i guess depends= isn't broken, but call is. gert,
i can see that it's more "elegant" to get positive feedback when you say <call>. however, imo, it's just syntactic sugar, not essential -- the language cost of force= was minor compared to revamping all those build files invested in the previous behaviour. jean > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Jean Rajotte > Sent: Thursday, November 20, 2003 09:55 > To: 'Breen, Patrick'; [EMAIL PROTECTED] > Subject: RE: [Nant-users] Incorrect dependency evaluation? > > > please let it be that 0.8.4 behaviour is a bug, and that > <0.8.4 behaviour is the right one. there's a force= > attribute to change that. i'm heavily invested in > only-run-once for depends= (e.g. every target calls the > global init-props target to afford each target granularity). > > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of > > Breen, Patrick > > Sent: Thursday, November 20, 2003 09:47 > > To: [EMAIL PROTECTED] > > 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