Java Mailing List Archive

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

Home » Ant Users List »

How to store date time as a long value into a text file.

Ravi Roy

2008-04-26

Replies:

Author LoginPost Reply
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="create.foo">
    <touch file="foo" />
 </target>

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

Regards,
Ravi.

---------------------------------------------------------------------
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.