ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Velagapudi, Murali" <>
Subject RE: Setting a property in a custom task
Date Wed, 22 Sep 2004 20:29:43 GMT

I didn't ry this but i think you can try by using

getProject().setProperty(property, value);
getProject().setUserProperty(property, value);

in your custon task class


-----Original Message-----
From: Carter, Scott [mailto:Scott.Carter@GTECH.COM]
Sent: Wednesday, September 22, 2004 4:20 PM
To: ''
Subject: Setting a property in a custom task

I have a custom task that determines a build label.  In the custom task this
is just a String.  Is there a way to set an ant property in the custom task.
For example, I would like to have a property called build.label that can be
used by other tasks, whose value was set in my custom task.

Thanks - Scott

This email may contain confidential and privileged material for the sole
use of the intended recipient(s). Any review, use, retention, distribution
or disclosure by others is strictly prohibited. If you are not the intended
recipient (or authorized to receive for the recipient), please contact the
sender by reply email and delete all copies of this message. Also, email is
susceptible to data corruption, interception, tampering, unauthorized
amendment and viruses. We only send and receive emails on the basis that we
are not liable for any such corruption, interception, tampering, amendment
or viruses or any consequence thereof.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message