Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 52510 invoked from network); 11 Nov 2003 14:31:26 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 11 Nov 2003 14:31:26 -0000 Received: (qmail 75562 invoked by uid 500); 11 Nov 2003 14:31:14 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 75527 invoked by uid 500); 11 Nov 2003 14:31:13 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 75513 invoked from network); 11 Nov 2003 14:31:13 -0000 Received: from unknown (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by daedalus.apache.org with SMTP; 11 Nov 2003 14:31:13 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id hABEV89k009556 for ; Tue, 11 Nov 2003 15:31:08 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id ; Tue, 11 Nov 2003 15:31:10 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF7261@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: Including directories that may or may not exist Date: Tue, 11 Nov 2003 15:31:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3A860.73370BE0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3A860.73370BE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable > Quoting Stefan Bodewig : > > (and any other task of the family) will only work on > > existing files and directories. You'll have to make sure that they > > exist using (which will silently do nothing if the = directory > > already exists). >=20 > Would it make sense to have an 'optional' attribute on a=20 > fileset and/or=20 > pathelement to indicate that it should be skipped if the=20 > directory or file=20 > doesn't exist? Or people might think this would be error-prone? Sorry, new in this thread. But what do you mean with 'optional' attribute? Scenario: - "dir1" must exist, usually you add a before the = - "mybasedir" must exist (I think); here the optional attribute could = make sense - "subdir1" and "subdir2" don=B4t have to exist; only if they exist = they are=20 selected by the DirectoryScanner used by So the only scenario for your "optional" suggestion would be So that task wouldnt fail. Jan ------_=_NextPart_001_01C3A860.73370BE0--