Just wanted to share our (temporary) solution we currently use to have
scoped variables in macrodefs. Not ideal, but it currently works.
build.xml:
<?xml version='1.0'?>
<!DOCTYPE project [
<!ENTITY uid "be.steria.ant.addon.0.3.base">
]>
<project basedir="." name="&uid;" default="test">
<import file="macrodef.xml"/>
<target name="test">
<property name="&uid;.test" value="zzz"/>
<echo>&uid;.test : ${&uid;.test}</echo>
<test-macrodef test="${&uid;test}"/>
</target>
</project>
macrodef.xml
<?xml version='1.0'?>
<!DOCTYPE project [
<!ENTITY uid "be.steria.ant.addon.0.3.test">
]>
<project basedir="." name="&uid;">
<macrodef name="test-macrodef">
<attribute name="test"/>
<sequential>
<property name="&uid;.test" value="yyy"/>
<echo>&uid;.test : ${&uid;.test}</echo>
</sequential>
</macrodef>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]