Unsetting (removing) a property is espacially handy if you have a "helper" target. That target is called from several places and sets / unsets a property (just like a method). Eg based on a customers directory you gather it will set / unset the necessary properties to build eg the customer configuration/installation the correct way. So those properties are just in the scope of a couple of targets of which a couple of them are "static" targets, which are executed based on the need of them.
If you lost me, just tell me ;) Mvgr, Martin > -----Original Message----- > From: Erik Hatcher [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 14, 2002 12:59 > To: Ant Developers List > Subject: Re: Deleting properties > > > 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" <[EMAIL PROTECTED]> > To: "jakarta-ant-dev" <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
