Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 28877 invoked from network); 10 Apr 2008 03:10:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Apr 2008 03:10:57 -0000 Received: (qmail 29236 invoked by uid 500); 10 Apr 2008 03:10:50 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29202 invoked by uid 500); 10 Apr 2008 03:10:50 -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 29190 invoked by uid 99); 10 Apr 2008 03:10:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Apr 2008 20:10:50 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Alec.Fernandez@sas.com designates 149.173.6.152 as permitted sender) Received: from [149.173.6.152] (HELO mercav04.na.sas.com) (149.173.6.152) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Apr 2008 03:10:00 +0000 Received: from merchub02.na.sas.com ([10.19.20.25]) by mercav04.na.sas.com with InterScan Message Security Suite; Wed, 09 Apr 2008 23:10:19 -0400 Received: from MERCMBX14.na.sas.com ([10.19.20.114]) by merchub02.na.sas.com ([10.19.20.25]) with mapi; Wed, 9 Apr 2008 23:10:18 -0400 From: Alec Fernandez To: Ant Users List Date: Wed, 9 Apr 2008 23:10:17 -0400 Subject: adding filters to a filterset Thread-Topic: adding filters to a filterset Thread-Index: Achi7BRrFPtSqJp0SqijdE+196/uJA3yYXGg Message-ID: <345520A34347BA49B798F70B218ACD1304403BDA73@MERCMBX14.na.sas.com> References: <1f97de60801282220re44d73m37934a36f04e49e4@mail.gmail.com> <479F05B0.5090807@apache.org> <479F0DF8.5070205@knipp.de> <479F491A.4070901@apache.org> <1f97de60801291258gb11e380j583683c211841244@mail.gmail.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hello, I'm hoping someone can tell me if this is possible. I'm beginning to think= that since there is no set method in Project that this simply is not possi= ble. I define a filterset in a target and then call a custom task to which I pas= s the refid of the filterset. In the task I can then see the filters in the filterset Reference r =3D new Reference(getProject(), filtersetrefid); f =3D (FilterSet) r.getReferencedObject(); String allfilters =3D f.getFilterHash().toString(); Logger.log( Project.MSG_VERBOSE, this, "filterhash toString():"= + allfilters ); I then use f.addFilter to add filter elements to the filterset and I can pr= int these in the task. [GetObjectProperties] filterhash toString():{oma.folder.products.path=3D/Pr= oducts, oma.person.demo.login.userid=3Dhpusrv001\sasdemo, foo.foo=3Dbar.bar= } However, upon returning from the task to the calling target, the filterset = seems to only have the original filter element that was added in the filter= set task. Does anyone know if I can accomplish adding filter elements to a filterset = in this manner? Or can I create a new filterset in my task, give it a refid and then use th= at refid back in my target? Thanks, Alec --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org