Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 90559 invoked from network); 3 May 2008 05:03:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 May 2008 05:03:51 -0000 Received: (qmail 39590 invoked by uid 500); 3 May 2008 05:03:45 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 39557 invoked by uid 500); 3 May 2008 05:03:45 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 39537 invoked by uid 99); 3 May 2008 05:03:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2008 22:03:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ravi.aroy@gmail.com designates 209.85.200.172 as permitted sender) Received: from [209.85.200.172] (HELO wf-out-1314.google.com) (209.85.200.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 May 2008 05:03:00 +0000 Received: by wf-out-1314.google.com with SMTP id 23so1469812wfg.10 for ; Fri, 02 May 2008 22:03:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:reply-to:from:to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole:in-reply-to:importance; bh=338x4NmX9wI5L5k5vppqJgvUvoLnwEnzjTIt5XqZF7I=; b=tGJR8eaVwmVeNDun1wO/RZ8l84klwFw4V+FekNSQHI9BE0a/VSo2GfK9re71+n24mPF9YQnPuwYvzdsaUvJbOCe/LTCScNJOCdWC7t4H6h37hrJ2DNMmGQI91/syiC6/1WQLnKvhDMmSijfTZIdQeV5dxuGNQKtP7AcE1Uu6UU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=reply-to:from:to:subject:date:message-id:mime-version:content-type:content-transfer-encoding:x-priority:x-msmail-priority:x-mailer:x-mimeole:in-reply-to:importance; b=WwxNkPDpJARBa9beASIo7zt4vU5qNMqkI3XtOJb4TiGtL7u+CQQ+/hbu4JJtKC/Vr75jjuJru85x0uyW4oY8WmBgfFK5N3RxqanJk3+nkArQsJI2LL8ULFl+7v01V5RDnnT1HkR8pdJRPCTBSoZPd1HNJWDbXr9kpIb517qcEVo= Received: by 10.142.126.17 with SMTP id y17mr1555637wfc.170.1209790994840; Fri, 02 May 2008 22:03:14 -0700 (PDT) Received: from noicltjks ( [122.162.81.188]) by mx.google.com with ESMTPS id 32sm9504506wfa.18.2008.05.02.22.03.10 (version=SSLv3 cipher=RC4-MD5); Fri, 02 May 2008 22:03:14 -0700 (PDT) Reply-To: From: "Ravi Roy" To: "'Ant Users List'" , Subject: RE: How to store date time as a long value into a text file. Date: Sat, 3 May 2008 10:33:06 +0530 Message-ID: <006e01c8acda$fd35f940$0201a8c0@noicltjks> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6626 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 In-Reply-To: <48148792.3080902@mindspring.com> Importance: Normal X-Virus-Checked: Checked by ClamAV on apache.org Sorry for dely in replying... I tried tstamp ant task, but it gives me the date and time in the format I specify in pattern, while I wanted a long value produced by System.currentTimeMillis() in the created file. Thanks for your response. Regards Ravi. -----Original Message----- From: Scot P. Floess [mailto:floess@mindspring.com] Sent: Sunday, April 27, 2008 7:33 PM To: Ant Users List Subject: Re: How to store date time as a long value into a text file. Did you look at the tstamp task? Ravi Roy wrote: > Just to inform the list, I was not able to wokout this problem using > standard Ant task, I had to write small custom Ant task to solve this > problem -- which in fact I was trying to avoid ;-) > > Regards, > Ravi. > > > -----Original Message----- > From: Ravi Roy [mailto:ravi.aroy@gmail.com] > Sent: Saturday, April 26, 2008 1:35 PM > To: Ant Users List > Subject: How to store date time as a long value into a text file. > > > 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 : > > > > > > 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@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > > -- Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org