Java Mailing List Archive

http://www.gg3721.com/

Home » user.groovy »

[groovy-user] Declare a macrodef via AntBuilder?

Barry Kaplan

2008-08-24

Replies: Find Java Web Hosting

Author LoginPost Reply

I'm getting strange errors and am not sure what the below code is doing
internally. I want to keep the targets in normal xml they can be invoked via
the Eclipse Ant view, but all the rest of the xml I would like to kill
forever.

Hence is there a way to declare a macrodef via AntBuilder?

...
<groovy>
ant.macrodef (name:'iterate') {
 attribute(name:'target')
 sequential {
       ...
    }
}
</groovy>

<target name="compile" description="Compile all projects">
 <iterate target="compile" />
</target>



--
Sent from the groovy - user mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

  http://xircles.codehaus.org/manage_email


©2008 gg3721.com - Jax Systems, LLC, U.S.A.