Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 31272 invoked from network); 27 Jun 2000 11:39:35 -0000 Received: from smtp01ffm.de.uu.net (192.76.144.150) by locus.apache.org with SMTP; 27 Jun 2000 11:39:35 -0000 Received: from sbodewig.bost.de ([195.127.75.69]) by smtp01ffm.de.uu.net (5.5.5/5.5.5) with ESMTP id NAA18858 for ; Tue, 27 Jun 2000 13:39:32 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id NAA03547; Tue, 27 Jun 2000 13:39:31 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-dev@jakarta.apache.org Subject: Touch task From: Stefan Bodewig Date: 27 Jun 2000 13:39:31 +0200 Message-ID: Lines: 18 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hi, Some of you might have noticed my hack to Untar to set the file modification times to the values retrieved from the tar file. I'd like to do the same to the Expand task. As I don't want to duplicate code I'm going to move the relevant parts out into another class which could easily be a Touch task. The problem I see is that this task wouldn't do anything in JDK 1.1 as File.setLastModified hasn't been there and write(new byte[0]) doesn't change the modification time of the file you are writing to - at least not on my Linux box. So my question is whether we want to have a touch task that would be a NOP on JDK 1.1 - except when the file that shall be touched doesn't exist. Stefan