ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hanasaki <hanas...@hanaden.com>
Subject scoping issue with macros in included included ant file.
Date Tue, 26 Oct 2004 01:04:35 GMT
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


Mime
View raw message