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 39694] New: - <macrodef>: multiple use of element inside nested <patternset>s fails
Date Wed, 31 May 2006 16:50:46 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=39694>.
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=39694

           Summary: <macrodef>: multiple use of element inside nested
                    <patternset>s fails
           Product: Ant
           Version: 1.6.5
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: purplefloyd@gmail.com


When a <macrodef> has a nested <copy> with two nested <fileset>s each of
which
referencing the same <element>, Ant fails with: 
BUILD FAILED
/qv/apps/u117424/elements.xml:10: The following error occurred while executing
this line:
/qv/apps/u117424/elements.xml:20: Missing attribute "name" for a pattern

However this should be a legal operation.

It appears that the first use of the element is destructive, causing some/all
element data to be null upon the second use.

e.g.
    <copy todir="outdir">
      <fileset>
        <myelement/>
      </fileset>
      <fileset>
        <myelement/>   <!-- myelement->* == null !! -->
     </fileset>
    </copy>

The second instance of myelement appears to be nullified by the first.

Attached build.xml to follow demonstrating the failure.

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