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 41226] New: - Target from imported file listed twice in projecthelp
Date Thu, 21 Dec 2006 16:50:21 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=41226>.
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=41226

           Summary: Target from imported file listed twice in projecthelp
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: m.champlon@free.fr


The following use case demonstrates the issue.

Given a first file named a.xml containing 

<project name="a">
  <target name="target" description="this is my target"/>
</project>

And another one named b.xml only importing the first one :

<project name="b">
  <import file="a.xml"/>
</project>

Invoking ant -p yields the following output :
$ ant -p -f b.xml
Buildfile: b.xml

Main targets:

 a.target  this is my target
 target    this is my target


This is obviously rather unconvenient when factorizing a lot of targets and 
using import extensively.

Note that Ant 1.6.5 does not behave like this but Ant 1.7.0Beta3 does.

-- 
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