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 42964] - wrong target invoked (when project name is prefix of target name?)
Date Tue, 24 Jul 2007 16:13:26 GMT
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=42964>.
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=42964


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED




------- Additional Comments From peterreilly@apache.org  2007-07-24 09:13 -------
Indeed, the targets have been changed slightly for imported files.
For example take the example:
example.xml :
<project name="example">
    <target name="build"/>
</project>
build.xml: 
<project name="main">
   <import file="example.xml"/>
</project>
This would have one target - "build"

however, the build file
<project name="main">
   <import file="example.xml"/>
   <target name="build"/>
</project>
would have two targets "build" (in build.xml) and "example.build"
in (example.xml).

This made it difficult to write reusable import build files, so
for ant 1.7.0 the "example.build" target was always created (as
well as the overriddable "build" target).

Your example would generate three targets:
"compile"  (bound to special.xml/compile)
"special.compile" (bound to special.xml/compile)
and
"special.special.compile" (bound to special.xml/special.compile)


It probably should be:
"compile"  (bound to special.xml/compile)
"special.compile" (bound to special.xml/special.compile)
and
"special.special.compile" (bound to special.xml/special.compile)


I will see what can be done.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message