ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "glenn opdycke-hansen" <glenn...@gmail.com>
Subject Re: How to have Dynamic Propert in ant
Date Thu, 10 Jul 2008 21:23:34 GMT
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">
   <param name="param1" value="valueA"/>
  </antcall>

  <antcall target="doSomethingElse">
   <param name="param1" value="valueB"/>
  </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>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message