ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Deleting properties
Date Thu, 14 Feb 2002 11:58:30 GMT
Martin,

If you're planning on deleting them from the latest codebase, you're going
to run into trouble.  Project.getProperties and .getUserProperties both
return a clone of the original and deleting from there will have no effect
on the real properties.

I'm of the opinion that properties should be immutable once set, but whether
allowing the removal of a property is perhaps a different story.  Thoughts?

    Erik


----- Original Message -----
From: "Martin van den Bemt" <mvdb@mvdb.com>
To: "jakarta-ant-dev" <ant-dev@jakarta.apache.org>
Sent: Thursday, February 14, 2002 6:09 AM
Subject: Deleting properties


> Hi,
>
> I looked at the project.java and it doesn't contain any methods for
clearing
> or deleting properties (setProperty(String, String). I would like to see
if
> the second parameter is null, the property will be deleted.
> Is this a possibility already and am I missing something or is this
> intentionally not present ?
> For this I am writing a custom task right now, but it probably is better
to
> put this in Property.java.
>
> Mvgr,
> Martin
>
>
> --
> To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message