ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ondřej Světlík <ond...@svetlik.info>
Subject Re: Property vs. user property - what's the difference?
Date Wed, 15 Feb 2006 13:46:52 GMT
> Hello,
> Could you explain the "even more immutable" part of your mail ?
> Thanks,
> Patrick M.
>
> On 2/15/06, Stefan Bodewig <bodewig@apache.org> wrote:
>> On Tue, 14 Feb 2006, Ian Pilcher <i.pilcher@comcast.net> wrote:
>>
>> > Can someone explain the difference between a property and a user
>> > property (or the difference between Project.setProperty and
>> > Project.setUserProperty)?
>>
>> user properties are the properties defined on the command line or as
>> nested <property> elements in <ant> tasks.  They are even more
>> immutable than plain properties and are passed down to child builds
>> accross <ant> even if inheritall is false.
>>
>> Stefan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>> For additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

I think that "even more" immutable are only properties defined on
command-line. These properties are passed to ant from jvm, that's why they
can't be reset or unset by any means. The only way to "forget" them is to
run ant as an external program using <apply> task.

Best regards

Ondrej Svetlik

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message