ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markku Saarela <markku.saar...@entra.fi>
Subject Re: How to get the current time?
Date Tue, 30 Dec 2003 07:41:13 GMT
Hi,
you put prefix to tstamp so this echo task should be:

<echo message="${start.touch.time}" />

rgds, Markku

Guofeng Zhang wrote:

>I want to store the current time in jar's MANIFEST.MF. but I can not know how to get it
in the ant.
>
>The following is what I know, but it won't work. It always display '{touch.time}', not
the date.
>
>  <tstamp prefix="start">
>      <format property="touch.time" pattern="MM/dd/yyyy hh:mm aa" />
>  </tstamp>
>
><echo message="{touch.time}" />
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>  
>


-- 
Markku Saarela
Senior Software Engineer (OO Technology, Java, J2EE, Smalltalk)
Entra e-Solutions Oy
mobile: +358-9-590 6505
markku.saarela@entra.fi
www.entra.fi


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


Mime
View raw message