Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 43997 invoked from network); 19 Oct 2009 20:56:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Oct 2009 20:56:35 -0000 Received: (qmail 87332 invoked by uid 500); 19 Oct 2009 20:56:35 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 87276 invoked by uid 500); 19 Oct 2009 20:56:35 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 87266 invoked by uid 99); 19 Oct 2009 20:56:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 20:56:34 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antoine.toulme@gmail.com designates 209.85.219.212 as permitted sender) Received: from [209.85.219.212] (HELO mail-ew0-f212.google.com) (209.85.219.212) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 20:56:32 +0000 Received: by ewy8 with SMTP id 8so4998771ewy.44 for ; Mon, 19 Oct 2009 13:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=pzxYckSyV3YgSe7PycSDPWEL/0zFQ4LaPgHEUeigIAs=; b=r2RvpZ/RiQRjFEYvRVSVhra8ZAyC/NK4a7XtRy4OYo4ZGr7iv4RiLtRa+lRgNkhPNi icoli65PjtUu3o359NN0KdDPmldkorc2k2Jw053mf1TBzs6IF9yAoHNVI27J1VYdbICM Hb4cajrrAXAfnzmbjZknv0RB3cOS2BFODppes= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=tg8RQKJrgXSRqWxW3fLxDQ0N4NoitDKcxLGWREOYZOn4wqdWC9pH2kRDVvVVWpKzgF 8LJKOCjbeDtipaw4eJ6NJIjYobEqjOrCqdZ63JM/wIfaBmMCH9FvKF3q+JywzpK2ATcz Dd6lEfec0E+6sJ0n3y4Qriw02BpW6A+j2aOnE= MIME-Version: 1.0 Sender: antoine.toulme@gmail.com Reply-To: antoine@lunar-ocean.com Received: by 10.211.141.2 with SMTP id t2mr113588ebn.59.1255985771146; Mon, 19 Oct 2009 13:56:11 -0700 (PDT) In-Reply-To: References: From: Antoine Toulme Date: Mon, 19 Oct 2009 13:55:51 -0700 X-Google-Sender-Auth: d7070d04ebee71fd Message-ID: Subject: Re: installing non-archive artifacts To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=00504502d05dbb6e0f04764ff9f2 --00504502d05dbb6e0f04764ff9f2 Content-Type: text/plain; charset=ISO-8859-1 Hi George, this is because you use the install task, which is extending the file task of Rake. That file task only runs if the file is not present. You can try invoking the task to force it to execute: (install task).invoke Note that I didn't try this, and that I don't know off hand what the install method returns. If that doesn't work, you'll need to find the install task of that artifact in an other way. Thanks, Antoine On Mon, Oct 19, 2009 at 11:29, Greg Lucas wrote: > I've got a build that needs to install/upload an XML file as an artifact. > I'm doing the following in my Rakefile: > > # produce the XML file > filter('src/...').into('target/...').using(...) > > # define an artifact and hook in to install/upload > xml_artifact = artifact(...).from('target/...') > install xml_artifact > upload xml_artifact > > > This works fine the first time, but any subsequent time a run the build the > artifact is never updated in my local m2 repo. It looks like install only > works if the artifact is not already there. That's not consistent with the > behavior using package. > > I suppose I could define a new packaging type for this but that seems like > overkill. Is this the intended behavior of install? Is there a better way to > deal with artifacts that are not in fact packaged archives? > > I'm using buildr 1.2.10 (as currently dictated by the Apache ODE 1.x > branch). > > -- > Greg Lucas > --00504502d05dbb6e0f04764ff9f2--