ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: Setting a property in a custom task
Date Thu, 23 Sep 2004 05:59:51 GMT
See also
http://cvs.apache.org/viewcvs.cgi/*checkout*/ant/docs/manual/tutorial-tasks-
filesets-properties.html?content-type=text%2Fplain#propertyaccess

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Velagapudi, Murali [mailto:murali.velagapudi@citigroup.com]
> Gesendet am: Mittwoch, 22. September 2004 22:30
> An: Ant Users List
> Betreff: RE: Setting a property in a custom task
> 
> Scott,
> 
> I didn't ry this but i think you can try by using
> 
> getProject().setProperty(property, value);
> or 
> getProject().setUserProperty(property, value);
> 
> in your custon task class
> 
> regards,
> Murali
> 
> -----Original Message-----
> From: Carter, Scott [mailto:Scott.Carter@GTECH.COM]
> Sent: Wednesday, September 22, 2004 4:20 PM
> To: 'user@ant.apache.org'
> 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: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message