ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: How to pass a value from a custom task to ant ?
Date Thu, 13 Feb 2003 02:38:58 GMT
On Wednesday, February 12, 2003, at 09:28  PM, 
hari.kalakonda@verizon.com wrote:
> What is the problem.  Can we not access like this.
> Is the ant going to read system properties at startup and doesn't care
> about the properties set at runtime ?

Exactly.

To set a property (in the Ant sense of the word, not the Java System 
sense), use project.setNewProperty().  I'd recommend one of the 
parameters to your task be the property name to set so that its 
dynamically configurable and not hard-coded.

	Erik


Mime
View raw message