How to use attribute URI in ANT MacroDef task?

709 Views Asked by At

I read doc page on http://ant.apache.org/manual/Tasks/macrodef.html, but I can understand. There are no examples. How to use attribute URI in ANT MacroDef task?

1

There are 1 best solutions below

0
On BEST ANSWER

I found solution here: http://mail-archives.apache.org/mod_mbox/ant-user/200606.mbox/%[email protected]%3E

 <project name="test" xmlns:me="x.y.z">
   <macrodef name="sample" uri="x.y.z">
       <sequential>
          <echo>Hello world</echo>
       </sequential>
   </macrodef>

   <me:sample/>
 </project>