Re: Syntax for Names: target, property, macrodef, etc.

2011-07-10 Thread Stefan Bodewig
On 2011-07-07, Steve Amerige wrote: > When I look at the 1.8.2 codebase, I see in: > ant-1.8.2\src\main\org\apache\tools\ant\taskdefs\MacroDef.java > public static boolean isValidNameCharacter(char c) { > // ? is there an xml api for this ? > return Character.isLetterOrDi

Re: Syntax for Names: target, property, macrodef, etc.

2011-07-07 Thread Steve Amerige
When I look at the 1.8.2 codebase, I see in: ant-1.8.2\src\main\org\apache\tools\ant\taskdefs\MacroDef.java /** * Check if a character is a valid character for an element or * attribute name. * * @param c the character to check * @return true if the character is

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Matt Benson
On Thu, Jun 30, 2011 at 11:50 AM, Steve Amerige wrote: > 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

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
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: Again, the point

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Matt Benson
On Thu, Jun 30, 2011 at 10:54 AM, Dominique Devienne wrote: > On Thu, Jun 30, 2011 at 8:31 AM, Dominique Devienne > wrote: >> On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: >>> I'm looking for the authoritative specification within Ant for the value of >>> the name attribute >> PS: Also

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Dominique Devienne
On Thu, Jun 30, 2011 at 8:31 AM, Dominique Devienne wrote: > On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige 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

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
Hi Dominique, Thanks for the info. And, also thanks for the specific example of the leading "-" character. Because Ant has only a global namespace for property names (and other names like macrodef, etc.), and for the case that a particular ant script inherits properties from the caller, I'm a

Re: Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Dominique Devienne
On Thu, Jun 30, 2011 at 6:51 AM, Steve Amerige wrote: > I'm looking for the authoritative specification within Ant for the value of > the name attribute as in: > > > > > > and so forth.  I can't find within the Ant manual any BNF that defines what > a valid name is allowed to be. Anything goes

Syntax for Names: target, property, macrodef, etc.

2011-06-30 Thread Steve Amerige
I'm looking for the authoritative specification within Ant for the value of the name attribute as in: and so forth. I can't find within the Ant manual any BNF that defines what a valid name is allowed to be. I do see: http://www.w3.org/TR/2004/REC-xmlschema-2-20041028/datatypes.html#