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 10413 invoked from network); 14 Jul 2000 09:38:53 -0000 Received: from public.ndh.net (HELO public.ndh.com) (195.94.90.21) by locus.apache.org with SMTP; 14 Jul 2000 09:38:53 -0000 Received: from sbodewig.bost.de ([195.227.98.11]) by public.ndh.com (8.9.3/8.8.0) with ESMTP id LAA26402 for ; Fri, 14 Jul 2000 11:38:35 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id LAA03516; Fri, 14 Jul 2000 11:38:35 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-dev@jakarta.apache.org Subject: Re: [patch] Get.java (was Re: Time-based dependencies) References: <025c01bfec3a$7981a0e0$d0d6000f@cvwls095> <044101bfed2c$888b55c0$d0d6000f@cvwls095> From: Stefan Bodewig Date: 14 Jul 2000 11:38:35 +0200 In-Reply-To: "Steve Loughran"'s message of "Thu, 13 Jul 2000 17:43:29 -0700" Message-ID: Lines: 25 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> "SL" == Steve Loughran writes: SL> However it's untested. I need to think of a suitable test matrix SL> (and a server to generate the test results). Unfortunately I don't live behind a firewall either so I cannot help you much with regard to testing - or should I say fortunately. As the Java URLConnection stuff is supposed to do most of the magic, your code should work - though I didn't test it either. Please change the code to setUseFiletime to either take a boolean argument (requires a rather recent Ant) or use Project.toBoolean to line up with the boolean like attributes of other tasks. SL> (Even so, it wont work for FTP and other protocols that dont SL> include date/time) Well, one could do the FTP stuff oneself and try to parse the result to the LIST command ... That's half way to a PUT task I guess. SL> 2. Touching the file after download. Take a look at Expand or Untar for examples of abusing Touch for this. Stefan