ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Manoj Sadangi <msada...@manh.com>
Subject RE: javascript inside ant
Date Tue, 13 May 2003 15:39:15 GMT
yes both type of notation is working
thanks, 
manoj 



-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Tuesday, May 13, 2003 11:23 AM
To: Ant Users List
Subject: Re: javascript inside ant


or just:

	project.getProperty("var1")

'project' is added into the scripting context automatically to avoid 
having to know its name (making scripts more reusable).

On Tuesday, May 13, 2003, at 10:42  AM, Keith Hatton wrote:

> something like
> echo.setMessage(myproject.getProperty("var1");
>
> where your <project> tag has
> <project name="myproject">...
>
> Hope this helps
> Keith
>
>
> -----Original Message-----
> From: Manoj Sadangi [mailto:msadangi@manh.com]
> Sent: 13 May 2003 15:19
> To: 'Ant Users List'
> Subject: javascript inside ant
>
>
> how can I access the property variable ${var1} inside the script task ?
> <script language="javascript"> <![CDATA[
>         echo = helloworld.createTask("echo");
>         all.addTask(echo);
>         echo.setMessage(${var1});
>     ]]>
> </script>
>
> thanks,
> manoj
>
> ---------------------------------------------------------------------
> 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
>
>
> ---------------------------------------------------------------------
> 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
View raw message