ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 27459] New: - Dependencies executed too often when targets specified on command line
Date Fri, 05 Mar 2004 01:01:59 GMT
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: dev@ant.apache.org
        ReportedBy: trevor@vocaro.com


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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message