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 27641] New: - Ordering of targets affects processing of macro instance validation.
Date Sat, 13 Mar 2004 20:46:59 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=27641>.
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=27641

Ordering of targets affects processing of macro instance validation.

           Summary: Ordering of targets affects processing of macro instance
                    validation.
           Product: Ant
           Version: 1.6.1
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: wascallywabbit@earthling.net


In a build.xml, the following works or doesn't work depending on 
the declaration order of targets "case0" and "case1". If "case1"
is defined first like below, everything works (and it should not). 
If "case0" is defined first things fail (as it should).

[ --- snip --- ]

<?xml version="1.0"?>
<project name="testcase" default="case1">

    <macrodef name="ATC" uri="phffht">
       <attribute name="msg" default="'normal'"/>
       <sequential>
         <echo message="@{msg}"/>
       </sequential>
    </macrodef>

    <target name="case1">
      <ATC xmlns="phffht"/>
      <ATC msg="hi" xmlns="phffht"/>
      <ATC />
    </target>

    <target name="case0">
      <ATC xmlns="phffht"/>
      <ATC />
    </target>
</project>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message