Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 71539 invoked from network); 21 May 2009 22:55:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 May 2009 22:55:59 -0000 Received: (qmail 50197 invoked by uid 500); 21 May 2009 22:56:12 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 50135 invoked by uid 500); 21 May 2009 22:56:11 -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 50125 invoked by uid 99); 21 May 2009 22:56:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 22:56:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brendan.grainger@gmail.com designates 74.125.92.27 as permitted sender) Received: from [74.125.92.27] (HELO qw-out-2122.google.com) (74.125.92.27) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 May 2009 22:56:01 +0000 Received: by qw-out-2122.google.com with SMTP id 3so915554qwe.23 for ; Thu, 21 May 2009 15:55:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :content-type:mime-version:subject:date:x-mailer; bh=vGSFCE82r4D+gKFuS3S3F/SDDKCYqB9amS1IchNDhVI=; b=P5XFRhCTO8oybLDfyK7igYC37I9/e9faaTJXlUfq7bsxcWTRBiAM9oFkwrdQGzU54Y MwUs/fkZvu56WFE+oPcrGLOR3KaoEoiRnyPCHspo/SSIIVDj7Dkb7au++vWbgE9ALduC y4A9agRmKpuAR1fmwppD8WNVeeSHgWSlFzox4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:mime-version:subject:date:x-mailer; b=pHqz9q2Ez5Iy7gN68VqF4//yGEvGUwYxAowzo2xaExIv+oAcHGLzP41b274mHlPaPP vfcq/bY5YTANd7A7adN7Hoc+4U6KisHdEp+vWcTDu6u9Y+si6rvGWvMSvgfyJzL1TEqC szb/XWjtsyWPqy9RIia1xM3k7WeZYHHZzf4Ng= Received: by 10.224.80.195 with SMTP id u3mr3238373qak.354.1242946540620; Thu, 21 May 2009 15:55:40 -0700 (PDT) Received: from ?192.168.1.127? (cpe-24-193-54-105.nyc.res.rr.com [24.193.54.105]) by mx.google.com with ESMTPS id 5sm705136qwh.4.2009.05.21.15.55.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 21 May 2009 15:55:40 -0700 (PDT) Message-Id: <1E14BBA8-F637-4421-A2A3-839383F9EAAD@gmail.com> From: Brendan Grainger To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=Apple-Mail-2-498850399 Mime-Version: 1.0 (Apple Message framework v935.3) Subject: Creating an artifact containing all jars in a zip Date: Thu, 21 May 2009 18:55:38 -0400 X-Mailer: Apple Mail (2.935.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-2-498850399 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Hi, I'm trying to create an artifact that contains all jars found in a zip download. So far I have this: task :install_jars do batik_zip = artifact("batik:batik:zip:1.7") download(batik_zip.name => "http://apache.osuosl.org/xmlgraphics/batik/batik-1.7.zip ") unzip_batik = unzip('target' => batik_zip) unzip_batik.target.invoke batik_dir = File.join(unzip_batik.target.name, "batik*", "lib", "*.jar") Dir.glob(batik_dir) do |t| # Now what? # bean = artifact('example.com:beans:jar:1.0').from(bean_jar) end batik_dir = File.join(unzip_batik.target.name, "batik*", "*.jar") puts batik_dir.inspect batik_artifact = artifact("batik:batik:jar:1.7") Dir.glob(batik_dir) do |t| # Now what? end # bean = artifact('example.com:beans:jar:1.0').from(bean_jar) end Any ideas about the now what? part. Sorry I'm still pretty inexperienced with buildr, but can see it's potential. Cheers Brendan --Apple-Mail-2-498850399--