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 34458] - <macrodef> with an embedded reference and <*ant*> conflict
Date Fri, 15 Apr 2005 08:41:51 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=34458>.
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=34458


peterreilly@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|<macrodef> and <ant>        |<macrodef> with an embedded
                   |sometimes conflict with each|reference and <*ant*>
                   |other                       |conflict




------- Additional Comments From peterreilly@apache.org  2005-04-15 10:41 -------
The problem is that the macrodef has a reference in it.
The handling of references in ant is broken - they are
resolved in a number of places - at parse time, and at run time.
In this case, the 'id="abc"' in the macrodef is invalidly resolved
when the <ant> call is made. Changing the title to reflect
the problem.
Thanks for the build files that show the problem. I am sure that
you encountered the problem in a large build files and went to the
effort of getting the simle build file.

I am not sure what can be done to fix this.
A work-around in this case would be to use an element name that
is allowed in the file set:

  <macrodef name="foo">
    <element name="include" implicit="yes" optional="yes" />
    <sequential>
      <fileset id="abc" dir=".">
        <include />
      </fileset>
    </sequential>
  </macrodef>



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