Aren't we making this too difficult for ourselves and for our users here, by
not using the $ or ${} delimiters ?

Perhaps I'm alone on this, but I really have serious doubts on this ...

Gert

----- Original Message -----
From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
To: "Ian MacLean" <[EMAIL PROTECTED]>; "Martin Aliger"
<[EMAIL PROTECTED]>
Cc: "Gert Driesen" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Friday, December 05, 2003 12:00 PM
Subject: Re: [nant-dev] PATCH: Expression evaluator for NAnt


> One more think came to my mind:
>
> Dash ("-") is a legal character in property name today and this may cause
> problems with expression evaluator because you cannot tell the difference
> between:
>
> property1 MINUS property2 (written as property1-property2)
> and
> very DASH long DASH property DASH name (written as
very-long-property-name)
>
> I've run "script-sample.build" from examples directory and found that
there
> are actually 6 properties with dashes in their names:
>
> nant.tasks.cvs-update
> nant.tasks.cvs-checkout
> nant.tasks.delay-sign
> nant.tasks.cvs-update.location
> nant.tasks.cvs-checkout.location
> nant.tasks.delay-sign.location
>
> Do you think we should do anything special to handle them?
> EE currently supports propertyvalue() function where you can specify
> property name as a string (so no quoting problems will arise). So for
these
> special properties you would have to write, e.g:
>
> <if
>
test="${contains(propertyvalue('nant.tasks.cvs-checkout.location'),'c:\windo
> ws')}">
>     <echo message="zzz" />
> </if>
>
> Is it ok?
>
> Jarek
>
> ----- Original Message -----
> From: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>
> To: "Ian MacLean" <[EMAIL PROTECTED]>; "Martin Aliger"
> <[EMAIL PROTECTED]>
> Cc: "Gert Driesen" <[EMAIL PROTECTED]>;
> <[EMAIL PROTECTED]>
> Sent: Wednesday, December 03, 2003 4:26 PM
> Subject: Re: [nant-dev] PATCH: Expression evaluator for NAnt
>
>
> >
> > Can we define properties as:
> >
> > property name => identifier { separator identifier } *
> > separator =>  "." | "-".
> > identifier => [a-zA-Z_][a-zA-Z0-9_-]*
> >
> > In English:
> >
> > "property name" is a sequence of "identifiers" separated by "separator"s
> > "separator" is a dot
> > "identifier" starts with a latin letter or an underscore and contains
only
> > letters, digits underscores or dashes.
> >
> > This may affect people using property names with non-latin characters.
> >
> > Jarek
> >
> > ----- Original Message -----
> > From: "Ian MacLean" <[EMAIL PROTECTED]>
> > To: "Martin Aliger" <[EMAIL PROTECTED]>
> > Cc: "Jaroslaw Kowalski" <[EMAIL PROTECTED]>; "Gert Driesen"
> > <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > Sent: Wednesday, December 03, 2003 3:20 PM
> > Subject: Re: [nant-dev] PATCH: Expression evaluator for NAnt
> >
> >
> > > Is anyone actually using numeric property names ? I say we should
> > > dissallow them and be done with it.
> > >
> > > Ian
> > >
> > > Martin Aliger wrote:
> > >
> > > >>>- it won't break compatibility for properties with numeric names
(eg
> > > >>>
> > > >>>
> > > >>${123})
> > > >>Can you have properties with such names? What's the use for them?
> Maybe
> > > >>
> > > >>
> > > >they
> > > >
> > > >
> > > >>should be disallowed or deprecated?
> > > >>
> > > >>
> > > >
> > > >What about output warning when defining property with such name?
> > > >that is on <property name="123" value="whatever"/> outputs something
> > like:
> > > >[property] warning: define property with numeric name is not
> recomended.
> > [or
> > > >is deprecated.]
> > > >
> > > >Martin
> > > >
> > > >
> > >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.net email is sponsored by: SF.net Giveback Program.
> > Does SourceForge.net help you be more productive?  Does it
> > help you create better code?  SHARE THE LOVE, and help us help
> > YOU!  Click Here: http://sourceforge.net/donate/
> > _______________________________________________
> > nant-developers mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/nant-developers
> >
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive?  Does it
> help you create better code?  SHARE THE LOVE, and help us help
> YOU!  Click Here: http://sourceforge.net/donate/
> _______________________________________________
> nant-developers mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/nant-developers
>
>



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to