Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

How to have Dynamic Propert in ant

sukanya

2008-07-10

Replies: Find Java Web Hosting

Author LoginPost Reply

Hi,

Here is the problem I am now facing:

<project default='init'>
 
  <target name='init'>
       <tstamp>
            <format property='TSTAMP' pattern='MM/dd/yyyy HH:MM:SS
z'/>
       </tstamp>
       <echo file='Time-Log.txtl' append='yes'> ${TSTAMP}</echo>
       <buildnumber file='${builddeployv3.dir}/build.number'/>
       <echo>ant.version: '${ant.version}'</echo>
       <echo>ant.home: '${ant.home}'</echo>
       <echo>java.version: '${java.version}'</echo>
<echo file='Time-Log.sql' append='yes'> ${TSTAMP}</echo>
  </target>
</project>

Here the time values are added to a file.
Where the file has the same time value twice. But i need to have different
time values with a single <tstamp> element and property. How property values
can be changed dynamically?

Appreciate your suggestion to solve this problem.

Thanks,
Sukanya

--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.