Search code examples
anturimacrodef

How to use attribute URI in ANT MacroDef task?


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?


Solution

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