Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 5523 invoked from network); 30 Jul 2010 00:27:56 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jul 2010 00:27:56 -0000 Received: (qmail 56961 invoked by uid 500); 30 Jul 2010 00:27:56 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 56878 invoked by uid 500); 30 Jul 2010 00:27:55 -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 56870 invoked by uid 99); 30 Jul 2010 00:27:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 00:27:55 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [206.190.38.169] (HELO web51303.mail.re2.yahoo.com) (206.190.38.169) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 30 Jul 2010 00:27:47 +0000 Received: (qmail 40281 invoked by uid 60001); 30 Jul 2010 00:27:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1280449645; bh=jTgJJZoCYGJHDRv9aBcQ6XmBY2okID1xMjgQSPXzMYg=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=RXxiYoySA6LM2SWtelHH23ZeFSYBF57MM2LJbMJ75tg7+vlhJUqe1qQ+W3BABGYs4A3oouvocl4IQ8BpNiSwAGmkEMhK81lTeCq3pdmzkFNpmZNEL2YI/azT44d1i8Gk/sZrlizNLvuIeqNX68tVv7ViX9jeXlepWBc7JwybY1c= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=iqTIUQpBLshxxSa7jmVqtMy89ft2iCLRjakUiEP9KS63pIOlveGTQfthcQduxrywCUJdVT6QWSD2Fp1IvM8stduVyoh6Ng8fEN5wOMvZ1pngVv70owgdzvcxG8zM+uppp3QmPNrK7tN/EYwjSU4aveRBZ35SWf58cpjisbJVCiM=; Message-ID: <876791.39928.qm@web51303.mail.re2.yahoo.com> X-YMail-OSG: kamsUp8VM1mEf4ajpCS5cUjWXWMSnwj1_Sp.RG_xgOuUZYn QvC_tXZSy0Sy9ZS5TvL8da8sZdxSZZ2uuJbvqmVgLFqzYBQsQPmXYWv7p9bR 9Pc2HyFRMRZt4Z8z4U.F8O8VNjGUq76M1OWR.LzsaFO2a4pVY5R4F4PP8jg2 ifmtl9o9CuR7Lzk9LKpkHNKqECaSrIVG6rOqQeGpOjFn8jo5DoXhJbntxa4W xbB3.jWCP.QHfZvf5PUoZpnmT1v..WzngxWpKHhAoTT84MiDIOq4qO4kDpqm gzg4bYl6wOLy44XUMycFyoMdu_0CRxKd314E8en6anOyxndA0H1w1AGryxVQ AFBJFcEdwySPv6g-- Received: from [63.251.6.89] by web51303.mail.re2.yahoo.com via HTTP; Thu, 29 Jul 2010 17:27:25 PDT X-Mailer: YahooMailClassic/11.2.4 YahooMailWebService/0.8.105.279950 Date: Thu, 29 Jul 2010 17:27:25 -0700 (PDT) From: Vimil Saju Subject: Re: Ant: want to copy a file if it exists To: Ant Users List In-Reply-To: <23FDD0B19615C1438C129BECB26FC41605209A3E@TLRUSDCMBX01.ERF.THOMSON.COM> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-202109920-1280449645=:39928" X-Virus-Checked: Checked by ClamAV on apache.org --0-202109920-1280449645=:39928 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Use the 'available' task to check if a file exists. There is also an 'if' t= ask which is part of antcontrib that you can use to execute tasks condition= ally --- On Thu, 7/29/10, eric.wood@thomsonreuters.com wrote: From: eric.wood@thomsonreuters.com Subject: Ant: want to copy a file if it exists To: user@ant.apache.org Date: Thursday, July 29, 2010, 2:08 PM I want to check to see if a file exist and if so then copy it.=A0 What is the best way for performing this conditional task? =20 Thanks, eric =0A=0A=0A --0-202109920-1280449645=:39928--