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
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
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
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
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
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
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
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
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#