Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 67536 invoked from network); 17 Oct 2006 14:31:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2006 14:31:18 -0000 Received: (qmail 39724 invoked by uid 500); 17 Oct 2006 14:31:12 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 39682 invoked by uid 500); 17 Oct 2006 14:31:12 -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 39670 invoked by uid 99); 17 Oct 2006 14:31:12 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2006 07:31:12 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [206.190.58.163] (HELO web55114.mail.re4.yahoo.com) (206.190.58.163) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Oct 2006 07:31:08 -0700 Received: (qmail 36509 invoked by uid 60001); 17 Oct 2006 14:30:42 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=4QjUzSmjGrsHR+W5odkslGfrRtP65T+B3uoh9gTjifd3Q/PkY06tjgHZL8eJgQljUgXZRu3Wo55lepR+OczNXWIsdTTCtNJVDr1YsbpzGszcEg9MS7E3Qsn/2MOfTrq5FK+O+gYobFu5hEhgBKQLX+3p/WOLf+9DQ2HqNqOH9+c= ; Message-ID: <20061017143042.36505.qmail@web55114.mail.re4.yahoo.com> Received: from [66.10.233.130] by web55114.mail.re4.yahoo.com via HTTP; Tue, 17 Oct 2006 07:30:42 PDT Date: Tue, 17 Oct 2006 07:30:42 -0700 (PDT) From: Matt Benson Subject: Re: Check if file already exists To: Ant Users List In-Reply-To: <45342758.6040404@active.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --- Christian Hauser wrote: > Hello > > I'd like to check within an Ant target whether a > particular file already > exists on the disk and if not download the file > (using the Get Ant task). > > How do I best check if the file already exists? > > Any help (preferably with a small code snippet) is > appreciated. You should consider using the usetimestamp attribute of the task. -Matt > > Thanks in advance, > > Christian > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > user-unsubscribe@ant.apache.org > For additional commands, e-mail: > user-help@ant.apache.org > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org