Re: Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
Hi all, I've done a bit of work on this and have modified the doit.groovy to: import org.apache.tools.ant.Task import java.lang.Class.* import java.lang.reflect.* def groovydoit() { Task body = (Task) elements.get("sequential").get(0) println body.dump() Class c = Class.forName("o

Re: Filtering Macrodef Elements

2012-01-25 Thread Scot P. Floess
Steve, Definitely gonna need to think about this ;) At this point, "I got nothin'" ;) On Wed, 25 Jan 2012, Steve Amerige wrote: Hi Flossy, On 1/25/2012 10:00 AM, Scot P. Floess wrote: Just at a first glance - one consideration I'd mention is that what you list is not syntactically corr

Re: Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
Hi Flossy, On 1/25/2012 10:00 AM, Scot P. Floess wrote: Just at a first glance - one consideration I'd mention is that what you list is not syntactically correct XML... So, I think if you wanted something like that you will need to preprocess and convert to an XML that can be processed. Unless

Re: Filtering Macrodef Elements

2012-01-25 Thread Scot P. Floess
Steve, Just at a first glance - one consideration I'd mention is that what you list is not syntactically correct XML... So, I think if you wanted something like that you will need to preprocess and convert to an XML that can be processed. Unless that is what you are saying and I've misunde

Filtering Macrodef Elements

2012-01-25 Thread Steve Amerige
Hi all, I'm looking to filter a macrodef element before it gets interpreted so as to change it's behavior. Here's an example of what I'm talking about: ... <%{mytask} %{myattribute}="%{myvalue}"/> %{myblockofcode} ... In other words, I want the definition of mymacro to do *token subs