ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sukanya <sukanyade...@yahoo.co.in>
Subject Re: How to have Dynamic Propert in ant
Date Fri, 11 Jul 2008 04:10:21 GMT

Thank you all,

I can able make it by <antcall>

sukanya


glenn opdycke-hansen wrote:
> 
> Use <antcall> (the proper way)
> 
> The following test script demonstrates how antcall can take parameters and
> that the timestamp is recomputed.
> 
> --glenn
> 
> <project name="antcall" default="default">
> 
>  <target name="default">
> 
>   <antcall target="doSomethingElse">
>    
>   </antcall>
> 
>   <antcall target="doSomethingElse">
>    
>   </antcall>
> 
>  </target>
> 
>  <target name="doSomethingElse">
>   <echo message="param1=${param1}"/>
>   <tstamp>
>    <format property="touch.time" pattern="MM/dd/yyyy hh:mm:ss.SSS aa" />
>   </tstamp>
> 
>   <echo>${touch.time}
> </echo>
>  </target>
> 
> </project>
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-set-Dynamic-Property-in-ant-tp18376782p18396429.html
Sent from the Ant - Users mailing list archive at Nabble.com.


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


Mime
View raw message