Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 12970 invoked from network); 9 Nov 2000 19:00:34 -0000 Received: from jerry.bcpub.com (206.183.255.219) by locus.apache.org with SMTP; 9 Nov 2000 19:00:34 -0000 Received: from bp1 (62-6-231-193.btconnect.com [62.6.231.193]) by jerry.bcpub.com (8.9.3/8.9.3) with SMTP id OAA21138 for ; Thu, 9 Nov 2000 14:00:24 -0500 From: "Puzzle" To: "Ant-User@Jakarta. Apache. Org" Subject: Extended Copy Command Date: Thu, 9 Nov 2000 18:56:54 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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 V5.00.2314.1300 Importance: Normal X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Hello, Anyone know the best way to do this ? What I want is to be able to have a task (like ) but that will, when finished, hand a list of files copied to another task maybe for further processing. It could do this either as one large list at the end or on a file by file basis as each is copied. The reason is that I am using the log4j logging package in my project and would like to be able to have ant control passing each file that is going to be compiled (and hence copied to the build dir first - at least in my build files) to an external process (java / perl maybe) to scan the file and remove all log4j calls first (for a production run) This way we do not have to ship the log4j.jar with the product (it's applet based and the extra 40-50K for log4j we don't want the clients to have to download) Now I could use the Filter option to set a boolean and test if we want to log or not but this does not work as the recommended way of using log4j is to have a private static Category cat = Category.getInstance("category name") line at the top of each class being logged. Any ideas welcomed Oh yes, log4j is at www.log4j.org Huw