Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C67210B86 for ; Fri, 16 May 2014 10:14:14 +0000 (UTC) Received: (qmail 98539 invoked by uid 500); 16 May 2014 10:14:12 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 98395 invoked by uid 500); 16 May 2014 10:14: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 98265 invoked by uid 99); 16 May 2014 10:14:11 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 10:14:11 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [173.201.193.110] (HELO p3plsmtpa08-09.prod.phx3.secureserver.net) (173.201.193.110) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2014 05:27:10 +0000 Received: from [10.139.148.254] ([166.147.81.171]) by p3plsmtpa08-09.prod.phx3.secureserver.net with id 2VSh1o0093hmipA01VSiCM; Thu, 15 May 2014 22:26:45 -0700 Subject: Re: Question about Copy task with empty PatternSet References: <3AF2C44D-A267-4A28-BF42-0B6E93B89D32@rbwhitcomb.com> <1400070189.37791.YahooMailNeo@web122601.mail.ne1.yahoo.com> From: Roger Whitcomb Content-Type: text/plain; charset=utf-8 X-Mailer: iPhone Mail (11D201) In-Reply-To: Message-Id: Date: Thu, 15 May 2014 23:26:40 -0600 To: Ant Users List Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org Well, that basically worked. But I had to put the "exclude" not in the Patte= rnSet itself, but in the FileSet that referenced the PatternSet, like this: Not totally ideal, maybe, but it does work. I think what you said would work= with the incomplete example I gave, but I also was using the PatternSet som= etimes in conjunction with other PatternSets and the exclude in those cases m= essed me up (excluded everything when I didn't want to). But the idea does w= ork in that having both the include and the exclude gives a non-empty file l= ist always, whether the feature is enabled or not, which avoids the problem o= f an empty list implying "copy everything".=20 So, thank you very much! ~Roger Whitcomb > On May 14, 2014, at 9:04 PM, Antoine Levy Lambert wrote: >=20 > Hi, >=20 > you can try this (untested): >=20 >> >> > >> >=20 > The idea is to add an exclude element which fill fire only if support.abc i= s not set. >=20 > Regards, >=20 > Antoine > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org