ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: script
Date Wed, 28 Mar 2001 16:47:39 GMT
--- Juan Jesus Tova Ruiz <jjtova@aol.es> wrote:
> How can i get the value of a property tag and assign to another property
> using javascript.

Using the <script> task (with language="javascript"), you can get the
value of a property using:
  projectname.getProperty('propname')
where "projectname" is the value assigned to the "name" attribute in the
<project> tag, and "propname" is the name of the property whose value you
want to get. You can set the value of a property using:
  projectname.setProperty('propname', 'value')
where "propname" is the name of the property you want to set, and "value"
is the value you want to set that property to.

Diane


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/?.refer=text

Mime
View raw message