RE: "scoping" for macro definitions?

2013-09-26 Thread Martin Gainty
that was my initial answer .. but then I considered the collision of the global ant namespace (that macrodef plays in) with a customised non-ant namespace is implicitly declared within Ants global namespace The default namespace used by Ant is "antlib:org.apache.tools.ant". thus embedding a

Re: "scoping" for macro definitions?

2013-09-26 Thread Vimil Saju
I am not sure if this feature is available in ant 1.7 but can't you use namespaces to scope the macrodefs like follows Now all the macrodefs in buildCommon.xml has to be accessed as follows   To: Ant Users List Sent: Thursday, September 26, 2013 3:15 PM Subject: "scoping" for macro definiti

"scoping" for macro definitions?

2013-09-26 Thread Cyril Sagan
Is there a way to override a macro defined from a library I cannot control, my goal is to provide a local implementation, but not have to change all the callers. I'm stuck on Ant 1.7.0, and cannot update. How could I "fake out" a scoping mechanism to accomplish something like: or I tried using