Ingo,

It is a feature which has caused much debate on this list and I think we are
moving to address it somehow. It comes about from the need to override
properties set in a build file from the command line. If the properties are
set in the build file and can be changed, it is difficult to override them
at the command line, or from another ant project. Thus either properties are
immutable, allowing the command line to have precedence or properties have a
precedence associated with them so that only properties cannot be set with a
lower precedence value.

Conor


--
Conor MacNeill
[EMAIL PROTECTED]
Cortex eBusiness
http://www.cortexebusiness.com.au

> -----Original Message-----
> From: Ingo Adler [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, 11 October 2000 19:57
> To: [EMAIL PROTECTED]
> Subject: AW: can set propery only once
>
>
> Do you think that it's a necessary feature?
> I have some examples, where I don't need this feature.
> I don't have any example, where I need this feature.
>
> Ingo.
>
> > Its a feature at this time.
>
> > -----Original Message-----
> >
> > Hi,
> >
> > I can set a property only once = it always has the first assigned
> value:
> >
> > <target name="a">
> >     <property name="tmp" value="tmp/a"/>
> > <target/>
> > <target name="b">
> >     <property name="tmp" value="tmp/b"/>
> >
> >     The Value of ${tmp} is still tmp/a
> >
> > <target/>
> >
> > Is this a feature or a bug?
> >
> > Ingo
> >
>

Reply via email to