Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 46862 invoked from network); 3 Dec 2010 15:26:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 3 Dec 2010 15:26:49 -0000 Received: (qmail 98222 invoked by uid 500); 3 Dec 2010 15:26:49 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 98067 invoked by uid 500); 3 Dec 2010 15:26:47 -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 Delivered-To: moderator for users@buildr.apache.org Received: (qmail 52990 invoked by uid 99); 3 Dec 2010 13:37:38 -0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of atamur@gmail.com designates 209.85.212.44 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=WD78zPevhsPVVJ26nmdmV2beKs7T8A0XMZQ7yANw6Zg=; b=fFs3hDRCm2SZIgF3DuPl+Aia+2VkoSqXNRfXlLN0oksGiztwMKgEOrvbGbYYTD4HYF WXGt1SPDEvmUFP05wZAXUV8gn4olWnmYOyOqmiBLpCkaV9qGVtQTdU7IbcUFMHFIEDEa JLB68xWvs4JFdwIw1CsjHKuSsKQxswb7Et2Gk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Ii7e46B+JeC941xE6ZcLkWDDJUBvEnURinO4iFifJbJR9wkNj2NvTxdNdLxb12MP2V ejFZanP+OGtHYEMD2C+VXAOQ6VRjhfZkv2SSAB3NU/ACNIy8/q1vx1Oy2NuryPR5oIqb X03A8kEFza7U9mb9cDifaSXmJJEBmxlCOtGts= MIME-Version: 1.0 Date: Fri, 3 Dec 2010 16:37:09 +0300 Message-ID: Subject: downloading an external jar as an artifact From: Ilya Pyatigorskiy To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=0016e64084c89d9c04049681a271 X-Virus-Checked: Checked by ClamAV on apache.org --0016e64084c89d9c04049681a271 Content-Type: text/plain; charset=ISO-8859-1 Hi I'm extremely new to both ruby and buildr, so I'm pretty sure I'm asking a stupid thing right now, but I wasn't able to google it. My target is to be able to specify jar versions in a single place and I like the build.yaml approach, but some of the libs do not exist in the maven world, so I want buildr to download them. Taking the DOJO example from the docs I was able to create the following config: --- build.yaml --- # This project requires the following ruby gems, buildr addons artifacts: hamcrest: hamcrest:hamcrest:all:1.3.0RC2 --- /build.yaml --- --- buildfile --- hamcrestVer = Buildr.settings.build['artifacts'][:hamcrest.to_s][/[^:]+$/] hamcrestUrl = " http://hamcrest.googlecode.com/files/hamcrest-all-#{hamcrestVer}.jar" download(artifact(:hamcrest)=>hamcrestUrl) desc "The project" define "proj" do define "webui" do compile.with :hamcrest end end --- /buildfile --- that does work, but the way I was finally able to obtain the hamcrest version seems quite ugly to me. What would be a better way to achieve the same? Thank you! Ilya. --0016e64084c89d9c04049681a271--