https://issues.apache.org/bugzilla/show_bug.cgi?id=55971

Gilbert Rebhan <[email protected]> changed:

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

--- Comment #3 from Gilbert Rebhan <[email protected]> ---
Hello Antoine,

thanks for response. Yes, indeed it's a bit confusing -
and i already used the right syntax inside macrodef ;-)

  <echo if:true="${@{whentrue}}">@{bla}</echo>

A hint in the documentation won't hurt.

<project xmlns:if="ant:if" xmlns:unless="ant:unless">

  <property name="foo" value="on"/>

  <macrodef name="foobar">
   <attribute name="bla"/>
   <sequential>
     <echo>@{bla}</echo>
   </sequential>
  </macrodef>

  <echo>${ant.version}</echo>
  <foobar bla="yada,yada" if:true="${foo}"/>

</project>

running with Ant 1.9.1 :

[echo] Apache Ant(TM) version 1.9.1 compiled on May 15 2013
BUILD FAILED
c:\WKS\ant\tryme.xml:13: Unknown attribute [ant:if:if:true]

running with Ant 1.9.3 :

[echo] Apache Ant(TM) version 1.9.3 compiled on December 23 2013
[echo] yada,yada
BUILD SUCCESSFUL

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to