Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 81273 invoked from network); 12 Jul 2007 10:49:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 10:49:25 -0000 Received: (qmail 17053 invoked by uid 500); 12 Jul 2007 10:49:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 16999 invoked by uid 500); 12 Jul 2007 10:49:18 -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 16983 invoked by uid 99); 12 Jul 2007 10:49:18 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 03:49:18 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [193.201.183.194] (HELO sscd0003.dmz.huk.de) (193.201.183.194) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 03:49:14 -0700 Received: from sscd0027.huk-coburg.de ([10.148.152.136]) by sscd0003.dmz.huk.de with Microsoft SMTPSVC(6.0.3790.1830); Thu, 12 Jul 2007 12:48:52 +0200 Received: by sscd0027.huk-coburg.de (Postfix, from userid 1) id 1CEF958090; Thu, 12 Jul 2007 12:48:49 +0200 (CEST) Received: from sscd0002.dmz.huk.de (sscd0002.dmz.huk.de [10.148.152.132]) by sscd0027.huk-coburg.de (Postfix) with ESMTP id DE74A58090 for ; Thu, 12 Jul 2007 12:48:48 +0200 (CEST) Received: from sxf00002.lan.huk-coburg.de (unverified) by sscd0002.dmz.huk.de (HUK-COBURG Mailrelay2) with ESMTP id for ; Thu, 12 Jul 2007 12:48:51 +0200 Received: from VEX00130.lan.huk-coburg.de ([10.131.117.132]) by sxf00002.lan.huk-coburg.de with Microsoft SMTPSVC(6.0.3790.1830); Thu, 12 Jul 2007 12:48:49 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Subject: RE: How can I capture a file's date to a property? Date: Thu, 12 Jul 2007 12:48:51 +0200 Message-ID: <3AE93DC078AE8A41AEDA6B95DE4EB92D029DDC24@VEX00130.lan.huk-coburg.de> In-Reply-To: <3AE93DC078AE8A41AEDA6B95DE4EB92D029DDC23@VEX00130.lan.huk-coburg.de> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How can I capture a file's date to a property? Thread-Index: AcfD8LeNyYQx9ncMTWG//932kPccnAAcEJvwAAQKhuA= References: <3AE93DC078AE8A41AEDA6B95DE4EB92D029DDC23@VEX00130.lan.huk-coburg.de> From: "Rebhan, Gilbert" To: "Ant Users List" X-OriginalArrivalTime: 12 Jul 2007 10:48:49.0086 (UTC) FILETIME=[3A8B1DE0:01C7C472] Content-class: urn:content-classes:message Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org =20 Hi, if you want/need to go a more ' Antlike ' way =3D i forgot there's another possibility with the task from Antelope "... lastmodified Get the "last modified" date/timestamp of a file. ..." so it gets something like (untested) when ${moddate} contains your File.lastModified i never tried that task, but the Antelope task suite is great, recommended. get it here =3D http://antelope.tigris.org/files/documents/1409/11489/AntelopeTasks_3.4. 2.zip Regards, Gilbert -----Original Message----- From: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de]=20 Sent: Thursday, July 12, 2007 11:02 AM To: Ant Users List Subject: RE: How can I capture a file's date to a property? Hi, -----Original Message----- From: cknell@onebox.com [mailto:cknell@onebox.com]=20 Sent: Wednesday, July 11, 2007 9:21 PM To: user@ant.apache.org Subject: How can I capture a file's date to a property? /* I've have found several tasks for copying and renaming files and directories, but no way to get the file's date-stamp. */ i would go via