You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by hanasaki <ha...@hanaden.com> on 2004/10/26 03:04:35 UTC

scoping issue with macros in included included ant file.

build.xml
includes buildroot.xml

buildroot.xml
includes buildmacros.xml and
includes another build2.xml file dynamically based on a property set in
the first build.xml (the one called from the command line)

The goal is to have polymorphism of macro names that are defined in
buildmacros.xml.  build2.xml will redefine some of the macros from
buildmacros.xml

The result will be macros such as "compile" what will be general purpose
while macros such as "assemble" will be polymorphic.  For example:
assembling a WAR file is different from assembling an EAR or JAR.

== PROBLEM ==
The use of a macro, not in the default xmlns, from buildroot, fails
because the ant xml interpreter tries to resolve the macro in a
specifically defined xmlns prior to including the buildmacros.xml

any thoughts or suggestions as to how to address this are most appreciated.

Thank you.



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org