Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 39495 invoked from network); 20 Feb 2008 16:03:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 16:03:39 -0000 Received: (qmail 92110 invoked by uid 500); 20 Feb 2008 16:03:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 92078 invoked by uid 500); 20 Feb 2008 16:03:30 -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 92067 invoked by uid 99); 20 Feb 2008 16:03:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 08:03:30 -0800 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: local policy) Received: from [62.192.67.250] (HELO alpha.eurodyn.com) (62.192.67.250) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 16:02:41 +0000 Received: from parnitha.eurodyn.com (parnitha.eurodyn.com [10.251.0.3]) by alpha.eurodyn.com (8.13.8+Sun/8.13.8) with ESMTP id m1KG30aA013883 for ; Wed, 20 Feb 2008 18:03:00 +0200 (EET) Received: from eurodyn.com (cg2.eurodyn.com [10.250.11.8]) by parnitha.eurodyn.com (8.13.8+Sun/8.13.8) with ESMTP id m1KG2txI012480 for ; Wed, 20 Feb 2008 18:02:55 +0200 (EET) Received: from [10.250.21.23] (account dimitris.mouchritsas@eurodyn.com [10.250.21.23] verified) by cg2.eurodyn.com (CommuniGate Pro SMTP 5.1.11) with ESMTPA id 1864066 for user@ant.apache.org; Wed, 20 Feb 2008 18:02:55 +0200 Message-ID: <47BC4F32.6090007@eurodyn.com> Date: Wed, 20 Feb 2008 18:02:58 +0200 From: Dimitris Mouchritsas User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Ant Users List Subject: Re: problems creating a jar References: <200802201422.26423.fluca1978@infinito.it> <47BC2B34.1040807@eurodyn.com> <200802201534.52621.fluca1978@infinito.it> <47BC4DC1.2060707@apache.org> In-Reply-To: <47BC4DC1.2060707@apache.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Steve Loughran wrote: > Luca Ferrari wrote: >> On Wednesday 20 February 2008 Dimitris Mouchritsas's cat, walking on >> the keyboard, wrote: >>> So for example you create: >>> /dist >>> tmp/ >>> classes/ >>> img/ >>> lib/ >>> >>> and then you >> basedir="${dist.dir}/tmp/"> etc. >> >> But in this case into the jar I will have also the classes directory, >> while it should be present only the package tree, isn't it? >> Thanks for you suggestion, but is there any way to get the jar task >> working with the fileset, since I've got already a tree structure >> that contains everything I have to place in the jar? > > Use and its prefix attribute > > Steve, creating a tmp dir to create a complicated structure inside a jar file is the recommended approach? Is there a better way to do it? If the tmp dir is the way to go I suppose it's best not to delete this dir, except on a "clean" build right? This would allow for time stamp checking so in case nothing changes the jar wouldn't have to be re-jared every time? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org