Hi Dominique and all,

After considering that scriptdef, macrodef, and perhaps some other tags do not allow neither the "-" nor the "." as an initial character, I'm going to use the "_" character name prefix to indicate that a name is "local" to the current JVM. For example:

<var name="_i" value="1"/>

Again, the point of this convention is to workaround the fact that my understanding is that there is no scoping for *property*, *var*, and other names in Ant. So, is my understanding incorrect?

Can one use namespaces to have real local variables, properties, etc.? Is there any notion of scoping? I'd love to hear what Ant is capable of doing with respect to var, property, macrodef, scriptdef, etc. scoping for Ant 1.6, 1.7, and 1.8.

Thanks for your help.... it's very much appreciated!

Best regards,
Steve Amerige
SAS Institute, Deployment Software Developer

On 6/30/2011 11:54 AM, Dominique Devienne wrote:
On Thu, Jun 30, 2011 at 8:31 AM, Dominique Devienne<ddevie...@gmail.com>  wrote:
On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige<steve.amer...@sas.com>  wrote:
I'm looking for the authoritative specification within Ant for the value of the 
name attribute
PS: Also keep in mind that property expansion does occurs inside these
names, but I assume you mean the names after expansion.
Hmmm, I believe that's wrong on second thought.

Target names are not expanded I now recall, and it's probably the same
for property and macro names.

Someone might want to give a more definitive answer on that. --DD

Reply via email to