Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 12435 invoked from network); 14 Sep 2004 13:20:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 14 Sep 2004 13:20:58 -0000 Received: (qmail 33448 invoked by uid 500); 14 Sep 2004 13:20:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 33381 invoked by uid 500); 14 Sep 2004 13:20:36 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 33365 invoked by uid 99); 14 Sep 2004 13:20:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [202.54.11.65] (HELO smtp.pspl.co.in) (202.54.11.65) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Sep 2004 06:20:35 -0700 Received: from gulfport ([10.33.4.53]) (authenticated bits=0) by smtp.pspl.co.in (8.12.9/8.12.9) with ESMTP id i8EDKf5x024961 for ; Tue, 14 Sep 2004 18:50:42 +0530 From: "Ankita Kapadia" To: "Ant Users List" Subject: RE: How to echo date-time to log file? Date: Tue, 14 Sep 2004 18:53:49 +0530 Message-ID: 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 IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Brightmail-Tracker: AAAAAQAAAAQ= X-White-List-Member: TRUE X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Oops ! But this would echo only on the screen! -----Original Message----- From: Ankita Kapadia [mailto:ankita_kapadia@persistent.co.in] Sent: Tuesday, September 14, 2004 6:51 PM To: Ant Users List Subject: RE: How to echo date-time to log file? ....... ...build status etc....... Build Start Time : ${starttime} Build End Time : ${NOW} -----Original Message----- From: Patrick Surry [mailto:Patrick.Surry@quadstone.com] Sent: Tuesday, September 14, 2004 6:40 PM To: Ant Users List Subject: How to echo date-time to log file? This seems like a stupid question (and probably is!) but I can't seem to find what I'm looking for anywhere obvious. I have a build that takes a long time, and would like to be able to record the current date/time at various points throughout the build. Just like you get when you run in 'verbose' mode but without all the extra verbosity. Ideally I'd want something like a 'timestamp' attribute in the echo task, so I could do things like: ... Are there any obvious solutions to this - running an exec with a 'time' command seems like a hack, doesn't really do what I want; the ant-contrib doesn't give absolute times, just differences; the task probably could change log verbosity to force ant-generated timestamps at different points but again seems roundabout/overkill. Patrick --------------------------------------------------------------------- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org