Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 65667 invoked from network); 19 Feb 2010 07:36:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Feb 2010 07:36:00 -0000 Received: (qmail 93780 invoked by uid 500); 19 Feb 2010 07:35:59 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 93704 invoked by uid 500); 19 Feb 2010 07:35:59 -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 93694 invoked by uid 99); 19 Feb 2010 07:35:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2010 07:35:58 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [209.85.219.215] (HELO mail-ew0-f215.google.com) (209.85.219.215) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Feb 2010 07:35:48 +0000 Received: by ewy7 with SMTP id 7so596583ewy.37 for ; Thu, 18 Feb 2010 23:35:28 -0800 (PST) Received: by 10.213.109.131 with SMTP id j3mr4990584ebp.36.1266564927886; Thu, 18 Feb 2010 23:35:27 -0800 (PST) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx.google.com with ESMTPS id 13sm7111723ewy.9.2010.02.18.23.35.26 (version=SSLv3 cipher=RC4-MD5); Thu, 18 Feb 2010 23:35:26 -0800 (PST) Received: by ey-out-2122.google.com with SMTP id 25so1544239eya.29 for ; Thu, 18 Feb 2010 23:35:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.59.145 with SMTP id l17mr518638ebh.56.1266564925886; Thu, 18 Feb 2010 23:35:25 -0800 (PST) In-Reply-To: <53466cf1002180956k67cb4b9bv198e588a5911159f@mail.gmail.com> References: <4dcd15a91002161025g62f5f72au9cece4774e8ab5bc@mail.gmail.com> <4dcd15a91002170741y22b65cbduc31d8ffea98829f0@mail.gmail.com> <53466cf1002180956k67cb4b9bv198e588a5911159f@mail.gmail.com> Date: Fri, 19 Feb 2010 08:35:25 +0100 Message-ID: Subject: Re: Download dependency From: Anders Janmyr To: users@buildr.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Ok, thanks for the tip. Anders On Thu, Feb 18, 2010 at 6:56 PM, Victor Hugo Borja wr= ote: > Anders, > > On Thu, Feb 18, 2010 at 2:01 AM, Anders Janmyr = wrote: > >> =A0 =A0task :run =3D> :compile do >> =A0 =A0 =A0classpath =3D >> >> "#{path_to('target/classes')}:#{project('cli').compile.dependencies.join= (':')}" >> =A0 =A0 =A0cmd =3D "java -cp #{classpath} words.cli.WordsCli #{ENV['args= ']}" >> =A0 =A0 =A0puts cmd >> =A0 =A0 =A0system cmd >> =A0 =A0end >> > > Just a style note on this, you can execute a java program with something > like this [1]: > > =A0 =A0 =A0 Java::Commands.java 'words.cli.WordsCli', *ENV['args'].split, > :classpath =3D> compile.dependencies + [compile.target, resources.target] > > [1] =A0http://buildr.apache.org/rdoc/classes/Java/Commands.html#M000145 > > > -- > vic > > Quaerendo invenietis. > --=20 http://anders.janmyr.com/