Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 61727 invoked from network); 29 Jul 2002 15:43:37 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 29 Jul 2002 15:43:37 -0000 Received: (qmail 28606 invoked by uid 97); 29 Jul 2002 15:43:50 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 28588 invoked by uid 97); 29 Jul 2002 15:43:49 -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 28576 invoked by uid 98); 29 Jul 2002 15:43:49 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-Id: <4.3.2.7.2.20020729113420.0177ee00@malone.cisco.com> X-Sender: jkuhnash@malone.cisco.com X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Mon, 29 Jul 2002 11:41:23 -0400 To: "Ant Users List" From: Jeremy Kuhnash Subject: Mapping files into a JAR, seemingly impossible. In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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, I have a task that I need to do that I can't quite nail down. I am beginning to wonder if there is an easy way to do it in Ant at all, outside of exec'ing some 5 line perl script.... I want to essentially write something like this: Of course, the jar task doesn't support mappers as a nested parameter so .... The logic behind what I want to do is pretty simple: create a jar that contains files that are stripped of their ${environment} trailing ... An example: Say I have a directory ROOT/WEB-INF/conf/Resources.properties.dev. I want to create a JAR that has _only_ this file, renamed as ROOT/WEB-INF/conf/Resources.properties - that's it! Thanks for any input. The only other route I considered going was copying files with the mapper, then adding those to the JAR but I don't see a way to create a FileSet for the JAR out of the mapping set. I don't know .. am I missing something here? Thanks in Advance, Jeremy Kuhnash -- To unsubscribe, e-mail: For additional commands, e-mail: