You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2008/01/07 14:41:22 UTC

DO NOT REPLY [Bug 44175] New: - "�projecthelp" target prints out duplicate targets from build.xml's imported files.

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=44175>.
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=44175

           Summary: "�projecthelp" target prints out duplicate targets from
                    build.xml's imported files.
           Product: Ant
           Version: 1.7.0
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build Process
        AssignedTo: notifications@ant.apache.org
        ReportedBy: pradeepkpc@yahoo.com
                CC: pradeepkpc@yahoo.com


"�projecthelp" target is printing out duplicate targets from build.xml's 
imported files in Ant 1.7 version.

Provided if a build.xml contains a number of target and a imported build file, 
which in turn contains few target. Then on running "-projecthelp" target 
displays, all the targets in build.xml file and the duplicate targets from 
imported files, in "imported_file_name.target" format and the actauls target 
from imported file.

For instance: 
If build.xml file contains targets "clean" and "build". And the file 
com_database.xml contains target "database" and "foreignkeycheck". 

Now if com_database.xml has been imported by build.xml, then on running "-
projecthelp" target prints the following output.

Main targets:

clean
build
database
foreignkeycheck
com_database.database
com_database.foreignkeycheck

This is happening in Ant 1.7.0. However this is working fine in Ant 1.6 
versions.

Thanks,
Pradeep

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

DO NOT REPLY [Bug 44175] - "�projecthelp" target prints out duplicate targets from build.xml's imported files.

Posted by bu...@apache.org.
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=44175>.
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=44175


amorrison@curamsoftware.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amorrison@curamsoftware.com




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

DO NOT REPLY [Bug 44175] - "�projecthelp" target prints out duplicate targets from build.xml's imported files.

Posted by bu...@apache.org.
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=44175>.
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=44175


jan@materne.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




------- Additional Comments From jan@materne.de  2008-01-08 01:59 -------
This is intented behaviour:

If a buildfile is imported the imported targets are present with two names:
- {targetname}
- {projectname}.{targetname}

This is needed for overriding targets with "super"-call:

<project name="a">
    <import file="b.xml"/>
    <target name="justA"/>
    <target name="overwrite" depends="b.overwrite"/>
</project>
<project>
    <target name="overwrite"/>
    <target name="justB"/>
</project>

ant -projecthelp
  justA
  overwrite
  b.overwrite
  justB
  b.justB

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