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 2007/10/24 11:49:33 UTC

DO NOT REPLY [Bug 43686] New: - Inconsistent error detection for 'Duplicate target'

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

           Summary: Inconsistent error detection for 'Duplicate target'
           Product: Ant
           Version: 1.7.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: gillouxGaillard@wanadoo.fr


Duplicate targets in the build file were not allowed in ant 1.5, then with
ant 1.6 and with import files and targets being allowed to be overridden, 
duplicate targets where incorrectly allowed.

Revision 1.42 (or around) of ant/helper/ProjectHelper2.java attempted to fix 
this.
But if you considere the build files (given below), running:
  ant -f build-test.xml
doesn't work and fails with "Duplicate target 'common.target-1'"
while running:
  ant -f common.xml
works.

Additionally, it would be nice to know the filename where a particular target 
comes from in the error message.

build-test.xml:
<project name="test" default="compile" basedir="..">
  <import file="common.xml"/>
</project>

common.xml:
<project name="common" default="compile">
  <target name="target-1"/>
  <target name="common.target-1"/>
  <target name="compile"/>
</project>

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


DO NOT REPLY [Bug 43686] - Inconsistent error detection for 'Duplicate target'

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


peterreilly@apache.org changed:

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




------- Additional Comments From peterreilly@apache.org  2007-10-24 02:59 -------


*** This bug has been marked as a duplicate of 42964 ***

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