Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 12722 invoked from network); 17 Jan 2002 22:21:45 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 17 Jan 2002 22:21:45 -0000 Received: (qmail 22577 invoked by uid 97); 17 Jan 2002 22:21:19 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 22529 invoked by uid 97); 17 Jan 2002 22:21:18 -0000 Mailing-List: contact ant-user-help@jakarta.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 ant-user@jakarta.apache.org Received: (qmail 3859 invoked from network); 17 Jan 2002 16:06:09 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.4712.0 content-class: urn:content-classes:message Subject: Custom Task with nested Patternset MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Date: Thu, 17 Jan 2002 16:09:39 -0000 Message-ID: <07D05A69A3D0C14FAEA60C3ACE8E5564D46FB1@nike.hir.is> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Custom Task with nested Patternset Thread-Index: AcGfcV20KLA6+SztQfW3YHx1wQl2IA== From: =?Windows-1252?Q?Stef=E1n_Freyr_Stef=E1nsson?= To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello. =20 I'm wondering if there is any information anywhere about how to program your own custom tasks. I'm mostly interested in using a nested patternset element. =20 The problem is that I need to extend a task written by someone else. The task is called and it basically is a jar task where you specify the main class and the task extracts all the dependant classes and includes them in the generated jar. In the task you can specify a tag which lets you include additional resources that are not java class files (such as images, property files and so on). The problem with the tag is that it doesn't allow me to specify a which would take all the matching files from the classpath and include them also in the generated JAR file. To clarify, let me give an example: =20 =20 This should extract all .gif files from the JAR files in the classpath=20 and place them in the generated JAR file (test.jar). The problem is of course that I have no experience in programming Ant=20 tasks and even though I've looked at the code in the task I can't begin to imagine where to start. So if anybody knows a good=20 "task programming tutorial" or is willing to help me out with this=20 problem I would be most greatful. Kind regards, Stefan Freyr -- To unsubscribe, e-mail: For additional commands, e-mail: