ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erik Hatcher" <jakarta-...@ehatchersolutions.com>
Subject Re: Retrieving target name at runtime.
Date Fri, 25 Jan 2002 22:21:45 GMT
From: "Tran, Khiet" <ktran@melochemonnex.com>
To: <ant-dev@jakarta.apache.org>
Sent: Friday, January 25, 2002 5:01 PM
Subject: FW: Retrieving target name at runtime.


This particular issue has been vetoed by ant-dev numerous times, so its
unlikely it will be accepted this time.


> project.getProperties().remove("ant.target.current.name");

And besides, this particular piece of code is evil for a couple of reasons:
1) it goes around the property handling mechanism in Project and 2) in the
current CVS versions of Ant the getProperties call returns a copy of the
properties so they are not mutable the collection returned by getProperties.

    Erik


--
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