ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: Using ant script task
Date Wed, 08 Oct 2003 18:16:04 GMT
> -----Original Message-----
> From: Bender, Christopher [mailto:Christopher.Bender@tdsecurities.com]
> 
> When I try to run the following task i get 'null' returned from the
> getProperty even though the variale has been set.  Is there something I am
> missing?
> 
> 	<target name="verifyParams" depends="init">
>        <script language="javascript"> <![CDATA[
>            echo = dmt.createTask("echo");
>            execute.addTask(echo);
>            echo.setMessage("--> " + dmt.getProperty(instanceName));
>            ]]>
> 	  </script>
> 	</target>

Probably should be dmt.getProperty("instanceName")), with quotes, assuming
your project name is "dmt". --DD


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message