DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27459>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27459

Dependencies executed too often when targets specified on command line

           Summary: Dependencies executed too often when targets specified
                    on command line
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Consider the following Ant script:

<project default="all">
        <target name="d"/>
        <target name="t1" depends="d"/>
        <target name="t2" depends="d"/>
        <target name="all" depends="t1,t2"/>
</project>

This script runs target "d" only once, even though two targets depend on it.
This is the expected behavior, as indicated in the documentation for <target>:
http://ant.apache.org/manual/using.html#targets

However, if you specify the two targets on the command line, like this:

  ant t1 t2

Then the dependent target "d" will be run twice. This is not what one would
expect to happen. The expected behavior is that the dependency will be resolved
only once, just as it would for the case above.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to