I need to use an ant macrodef inside of an ant script,
simplified I want to do something as follows.
Is this possible? Where can I found more about the
Ant+Groovy Syntax, or better what can be used from ant
inside the script element.
<macrodef name="mymacro">
<attribute name="myparam"/>
<sequential>
<echo message="@{myparam}"/>
</sequential>
</macrodef>
<target name="script" >
<script language="groovy">
mymacro.setMyParam( <computed by script> )
mymacro.execute() // does not work
mymacro.perform() // does not work either
</script>
</target>
simplified I want to do something as follows.
Is this possible? Where can I found more about the
Ant+Groovy Syntax, or better what can be used from ant
inside the script element.
<macrodef name="mymacro">
<attribute name="myparam"/>
<sequential>
<echo message="@{myparam}"/>
</sequential>
</macrodef>
<target name="script" >
<script language="groovy">
mymacro.setMyParam( <computed by script> )
mymacro.execute() // does not work
mymacro.perform() // does not work either
</script>
</target>