From ivy-user-return-5127-apmail-ant-ivy-user-archive=ant.apache.org@ant.apache.org Mon Apr 20 13:45:08 2009 Return-Path: Delivered-To: apmail-ant-ivy-user-archive@www.apache.org Received: (qmail 80475 invoked from network); 20 Apr 2009 13:45:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Apr 2009 13:45:08 -0000 Received: (qmail 178 invoked by uid 500); 20 Apr 2009 13:45:07 -0000 Delivered-To: apmail-ant-ivy-user-archive@ant.apache.org Received: (qmail 99967 invoked by uid 500); 20 Apr 2009 13:45:07 -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 99957 invoked by uid 99); 20 Apr 2009 13:45:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2009 13:45:06 +0000 X-ASF-Spam-Status: No, hits=1.6 required=10.0 tests=RCVD_IN_DNSWL_LOW,RCVD_NUMERIC_HELO,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gcaii-ivy-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Apr 2009 13:44:57 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LvtnV-0005Fn-Pv for ivy-user@ant.apache.org; Mon, 20 Apr 2009 13:44:33 +0000 Received: from 82.109.240.194 ([82.109.240.194]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Apr 2009 13:44:33 +0000 Received: from tom.widmer by 82.109.240.194 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Apr 2009 13:44:33 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: ivy-user@ant.apache.org From: Tom Widmer Subject: Re: Best practice for unziping bundles Date: Mon, 20 Apr 2009 14:44:22 +0100 Lines: 48 Message-ID: References: <0BDC5E8B8C50C7459F4428B214F6105E28FF4C@mail.hq.rjlg.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 82.109.240.194 User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <0BDC5E8B8C50C7459F4428B214F6105E28FF4C@mail.hq.rjlg.com> Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Jonathan Roberts wrote: > Hello, > > I'm trying to configure ivy/ant to unzip bundles when a new one is > downloaded. I've got: > > event="post-download-artifact" filter="type=zip AND > status=successful"/> > > > That works, when the file is downloaded the first time, but I'd like to > have a trigger that gives me a zip when it's copied from cache. Also, > since the ivy settings is shared across several projects, if > unzip-dependency doesn't exist, the build fails. > > Is there a way to have the or task not run if the > task doesn't exist? Or maybe fail gracefully without killing the build? You can just define an empty unzip-dependency task. If you have a shared build script (included in your project files with ), you can can put it there, and override it as necessary in any build scripts that do need to unzip. > Is there a way to have a trigger that fires with all the newly copied > zips (from cache, not just downloaded to cache) You mean a post-retrieve trigger? I couldn't find such a thing. > What's the best practice on this? Am I just going about it the wrong > way? In the absense of a post-retrieve-artifact trigger, I do it in my ant script, and don't get ivy involved in unzipping things at all. e.g. in shared build script: /// Then individual build scripts that need to can override post_resolve_dependencies to do what they want. Tom