ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <khat...@axiomsystems.com>
Subject RE: javascript inside ant
Date Tue, 13 May 2003 14:42:58 GMT
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


Mime
View raw message