ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ravi Roy" <>
Subject How to store date time as a long value into a text file.
Date Sat, 26 Apr 2008 08:05:17 GMT
Hi all,

I have searched the archives, but I am not able to get the answer of
my question. My problem is I want to create a file say "foo" and store
current time as long value in that using Ant.

For example :

long myvar = System.currentTimeMillis();

would produce a long value of current date time, which I want to store in "foo"

I created the file :

	<target name="">
  	     <touch file="foo" />

But I am not sure, I to store date time as long value into that file..
Does some have any idea ?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message