Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95783 invoked from network); 9 Sep 2008 12:48:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Sep 2008 12:48:34 -0000 Received: (qmail 6309 invoked by uid 500); 9 Sep 2008 12:48:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 6281 invoked by uid 500); 9 Sep 2008 12:48:27 -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 6270 invoked by uid 99); 9 Sep 2008 12:48:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Sep 2008 05:48:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Tue, 09 Sep 2008 12:47:29 +0000 Received: from sscd0028.dmz.huk.de ([10.148.152.146]) by sscd0003.dmz.huk.de with Microsoft SMTPSVC(6.0.3790.3959); Tue, 9 Sep 2008 14:47:58 +0200 Received: by sscd0028.dmz.huk.de (Postfix, from userid 8) id 68B9E278964; Tue, 9 Sep 2008 14:29:09 +0200 (CEST) Received: from sscd0003.dmz.huk.de (sscd0003.dmz.huk.de [10.148.152.133]) by sscd0028.dmz.huk.de (Postfix) with ESMTP id 4B898278962 for ; Tue, 9 Sep 2008 14:29:09 +0200 (CEST) Received: from SMX00003.lan.huk-coburg.de (unverified) by sscd0003.dmz.huk.de (HUK-COBURG Mailrelay2) with ESMTP id for ; Tue, 9 Sep 2008 14:47:58 +0200 Received: from VMX00100.lan.huk-coburg.de ([10.130.66.152]) by SMX00003.lan.huk-coburg.de ([10.131.196.183]) with mapi; Tue, 9 Sep 2008 14:47:58 +0200 From: "Rebhan, Gilbert" To: 'Ant Users List' Date: Tue, 9 Sep 2008 14:47:57 +0200 Subject: RE: How to Check if Directory exists? Thread-Topic: How to Check if Directory exists? Thread-Index: AckSeB9YjjPlDE0kQYGkqFIg79AkRwAANfvA Message-ID: References: <12C4B48395D403429B532079EB2236CD13F462@S4DE8SSAAIG.suedwest.t-com.de> In-Reply-To: <12C4B48395D403429B532079EB2236CD13F462@S4DE8SSAAIG.suedwest.t-com.de> Accept-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE MIME-Version: 1.0 Content-Language: de-DE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-OriginalArrivalTime: 09 Sep 2008 12:47:59.0018 (UTC) FILETIME=[49CBE8A0:01C9127A] X-Virus-Checked: Checked by ClamAV on apache.org -----Original Message----- From: Brill, C [mailto:C.Brill@t-systems.com] Sent: Tuesday, September 09, 2008 2:32 PM To: user@ant.apache.org Subject: How to Check if Directory exists? /* Hi, I've got a little problem. Here is the existing directory structure: drwxrwxr-x 5 symosyad edasql 96 Sep 9 13:14 DWH-PQ-HQ-0837 -rw-r----- 1 symosyad edasql 3760 Sep 9 13:14 DWH-PQ-HQ-0837_Lieferung.tar.gz drwxr-xr-x 3 symosyad edasql 96 Sep 9 13:12 archiv In one of the first steps in my build.xml I want to check if the file 'DWH-PQ-HQ-0837_Lieferung.tar.gz' and the directory 'DWH-PQ-HQ-0837' exist. If the exist I want to move them into 'archiv'. With the task I can only check if files exists, isn't it? */ " ... ... Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org