DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=28444>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=28444
Import: Target Handling Bug
Summary: Import: Target Handling Bug
Product: Ant
Version: 1.6.1
Platform: PC
OS/Version: Other
Status: NEW
Severity: Major
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: mbm@ptc.com
Because imported targets are only qualified by their owning project name when a
target by that name has already been defined, it can result in a non-existent
target error in certain contexts.
If project B & C both import A, and both A & B define target x, and B.x defines
A.x as its depends, it will fail due to a non-existent A.x target for C, unless
C also defines it.
<project name="A">
<target name="x"/>
</project>
<project name="B">
<import file="A.xml"/>
<target name="x" depends="A.x"/>
</project>
<project name="C">
<import file="A.xml"/>
<import file="B.xml"/>
</project>
Succeeds:
ant -f A.xml x
ant -f B.xml x
Fails:
ant -f C.xml x
BUILD FAILED
Target `A.x' does not exist in this project. It is used from target `B.x'.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
|