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] - <macrodef>: multiple use of element inside nested <patternset>s fails
Date Tue, 19 Sep 2006 17:23:47 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





------- Additional Comments From purplefloyd@gmail.com  2006-09-19 17:23 -------
I've just come across this issue again in Ant 1.6.5 using a non-copy operation.
 So to clarify, it looks to affect anything using an same element in more than
one <fileset> belonging to a single parent task.

This time I was writing a wrapper around the JAXB xjc task and had, e.g.:

  <macrodef name="myxjcwrapper">
    <attribute name="schema.dir"/>
    <element name="schema_fileset"/>
    <sequential>
      <xjc>
        <schema dir="@{schema.dir}">
          <schema_fileset/>
        </schema>
        <depends dir="@{schema.dir}">
          <schema_fileset/>
        </depends>
        <produces file="blah"/>
      </xjc>

Note the two uses of <schema_fileset>.  The second of which throws the error
mentioned in the initial bug report.  NB both <schema> and <depends> elements
are aliased <fileset>s.

Fortuantely after reading the xjc docs it is not neccessary to specify a depends
set if it matches your schema set, so I was able to get around the prob by
removing the <depends> set altogether.

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