Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 73019 invoked from network); 14 Aug 2008 23:57:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2008 23:57:46 -0000 Received: (qmail 92397 invoked by uid 500); 14 Aug 2008 23:57:45 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 92376 invoked by uid 500); 14 Aug 2008 23:57:45 -0000 Mailing-List: contact buildr-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-user@incubator.apache.org Delivered-To: mailing list buildr-user@incubator.apache.org Received: (qmail 92365 invoked by uid 99); 14 Aug 2008 23:57:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2008 16:57:45 -0700 X-ASF-Spam-Status: No, hits=0.8 required=10.0 tests=SPF_SOFTFAIL,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of arkin@intalio.com does not designate 72.14.220.158 as permitted sender) Received: from [72.14.220.158] (HELO fg-out-1718.google.com) (72.14.220.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2008 23:56:46 +0000 Received: by fg-out-1718.google.com with SMTP id l26so513130fgb.26 for ; Thu, 14 Aug 2008 16:57:13 -0700 (PDT) Received: by 10.86.65.11 with SMTP id n11mr1346063fga.64.1218758233473; Thu, 14 Aug 2008 16:57:13 -0700 (PDT) Received: by 10.86.81.13 with HTTP; Thu, 14 Aug 2008 16:57:13 -0700 (PDT) Message-ID: <3de5d7d20808141657l69591d5cq9ebe953f5192a1dd@mail.gmail.com> Date: Thu, 14 Aug 2008 16:57:13 -0700 From: "Assaf Arkin" To: buildr-user@incubator.apache.org Subject: Re: Download an artifact from the repo In-Reply-To: <18978005.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18959962.post@talk.nabble.com> <3de5d7d20808131055w6fdf7d25je27f5485ffb51367@mail.gmail.com> <18978005.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On Thu, Aug 14, 2008 at 1:56 AM, chihiro wrote: > > I spoke too fast. > > Doing File.copy( artifact(DELICIOUS).to_s , _('target') ) > will create the target as a file if I do a > > buildr clean > > first. That's because the target directory gets removed every time you run buildr clean, so copy , 'target' copies that file as target instead of into target. You want to create the directory first. Also, just using cp instead of File.copy will work (all the FileUtils methods are available in Buildr). Assaf > > So I need to write a rake task to perform the File.copy ? > > Thanks > > regards, > > Gavin > -- > View this message in context: http://www.nabble.com/Download-an-artifact-from-the-repo-tp18959962p18978005.html > Sent from the Buildr - User mailing list archive at Nabble.com. > >