Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 69693 invoked from network); 21 Feb 2008 18:29:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2008 18:29:10 -0000 Received: (qmail 24520 invoked by uid 500); 21 Feb 2008 18:29:04 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 24504 invoked by uid 500); 21 Feb 2008 18:29:04 -0000 Mailing-List: contact ivy-user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ivy-user@ant.apache.org Delivered-To: mailing list ivy-user@ant.apache.org Received: (qmail 24495 invoked by uid 99); 21 Feb 2008 18:29:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 10:29:04 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 18:28:18 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JSG9v-0004JQ-0R for ivy-user@ant.apache.org; Thu, 21 Feb 2008 10:28:39 -0800 Message-ID: <15617843.post@talk.nabble.com> Date: Thu, 21 Feb 2008 10:28:39 -0800 (PST) From: Tim Brown To: ivy-user@ant.apache.org Subject: Re: using cachefileset for creating war files without staging dir In-Reply-To: <15405054.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tbrown@thoughtworks.com References: <15405054.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I'm not aware of a prebuilt solution to this. However, what I do is loop through the artifacts to bundle in the EAR and dynamically create a zipfileset statement for each that specifies a fullpath attribute. I have an Ant build snippet on disk that contains a single token. I replace that token with the appropriate zipfileset entries then invoke it. Not the prettiest, but works. ~Tim Hi, I have a very large build with hundreds of artifacts. In order to create war and ear files with their dependent libs in the right place (typically WEB-INF/lib), I create a temporary "staging" dir, copy in the dependencies from cachefileset, and then create the war/ear. This works, but is very slow due to all the copying. I can get a significant speedup if I use the fileset references created by ivy:cachefileset directly when creating the war. This avoids the intermediate copying of the dependencies. It works, but I am unable to specify the proper location of the libs inside the resulting war/ear, as they have full paths like $HOME/.ivy2/cache/organisation/module/jars/foo-1.2.3.jar. Unfortunately the war/ear tasks do not take arguments. /quote> -- View this message in context: http://www.nabble.com/using-cachefileset-for-creating-war-files-without-staging-dir-tp15405054p15617843.html Sent from the ivy-user mailing list archive at Nabble.com.