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

Reply via email to