You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/03/05 02:01:59 UTC
DO NOT REPLY [Bug 27459] New: -
Dependencies executed too often when targets specified on command line
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