ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Duncan Davidson <>
Subject Re: Property substitutions, Contributed Tasks, & New features
Date Fri, 12 Jan 2001 07:44:38 GMT
On 1/11/01 10:30 PM, "Conor MacNeill" <> wrote:

>> -----Original Message-----
>> From: James Duncan Davidson []
>> I disagree that we need a way to say that a property is immutable.
> What about command line overrides. That is where the whole immutable thing
> came from and we need to consider how we handle that use case.

That's one of the reasons why I've been, maybe to subtlely, making a
distinction between

    <property> being something that is set on a module


       <setproperty> being a task that sets a property.


The reason for this is that properties defined on the command line could
supercede the properties defined by a module. However, this still doesn't
mean that they are immutable. Granted, scripts and such shouldn't change
properties willy-nilly, but the point is that the command line start sets an
entry point condition.

For example, I can say:

    java -Dmysysprop=foo

And my code could override that property. It's ok. Works fine.

James Duncan Davidson                              
                                                                  !try; do()

View raw message