Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 81885 invoked from network); 22 Apr 2003 13:42:59 -0000 Received: from webmail2.activeisp.com (HELO mailengine4.web2000.activeisp.com) (213.188.134.18) by daedalus.apache.org with SMTP; 22 Apr 2003 13:42:59 -0000 Received: from ROADRUNNER (unverified [217.155.44.225]) by webmail.activeisp.com (Rockliffe SMTPRA 5.2.5) with ESMTP id ; Tue, 22 Apr 2003 15:42:56 +0200 From: "Tim Gordon" To: "Ant Users List" Cc: "Hanasaki JiJi" Subject: RE: ant custom selectors Date: Tue, 22 Apr 2003 14:43:11 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <3EA54237.4080105@hanaden.com> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N http://ant.apache.org/manual/CoreTypes/selectors.html and http://ant.apache.org/manual/CoreTypes/selectors.html#customselect and http://ant.apache.org/manual/CoreTypes/selectors-program.html They're very easy to write - just subclass org.apache.tools.ant.types.selectors.BaseExtendSelector, override isSelected and setParameters. In your case you'd probably want to stream through the file looking through comments for the sequence "@include" or whatever string you'd like to determine what goes in what jar. Then your fileset which you'd use jar would look like You can then reference the fileset with a refid of clietjar.fileset in your jar task. Word of warning, early versions of ANT don't call setProject on the selector when it's created - I think it's fixed in the latest. Tim -----Original Message----- From: Hanasaki JiJi [mailto:hanasaki@hanaden.com] Sent: 22 April 2003 14:23 To: Tim Gordon Subject: ant custom selectors could you point out a link about these "custom selectors"? Or, can I resue your code? -- ================================================================= = Management is doing things right; leadership is doing the = = right things. - Peter Drucker = =_______________________________________________________________= = http://www.sun.com/service/sunps/jdc/javacenter.pdf = = www.sun.com | www.javasoft.com | http://wwws.sun.com/sunone = =================================================================