buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Boisvert <boisv...@intalio.com>
Subject Re: local dependencies.
Date Thu, 12 Feb 2009 17:49:57 GMT
You can try something like this,

jars = Dir["lib/*.jar"].map { |f|
 artifact("local:#{File.basename(f)}:jar:unknown").from(f)
}

which creates pseudo-artifacts for each .jar file under lib and then,

compile.with jars

alex


On Thu, Feb 12, 2009 at 9:33 AM, Watt Poosanguansit <
wpoosanguansit@yahoo.com> wrote:

> Thank you for your reply.  I looked at the source trying to understand it.
>  I still do not see how I can reference all the jar files in a folder, let's
> say, lib in the project directory.  Can you give an example code?  I
> appreciate your help.
>
>
>
> W.P.
>
>
>
> --- On Thu, 2/12/09, lacton <lacton@users.sourceforge.net> wrote:
>
> > From: lacton <lacton@users.sourceforge.net>
> > Subject: Re: local dependencies.
> > To: users@buildr.apache.org
> > Date: Thursday, February 12, 2009, 12:13 PM
> > You can use the 'from' method of the Artifact class
> > to reference local jars.
> >
> > http://buildr.apache.org/rdoc/classes/Buildr/Artifact.html#M000336
> >
> > Lacton
> >
> > On Thu, Feb 12, 2009 at 6:05 PM, Watt Poosanguansit
> > <wpoosanguansit@yahoo.com> wrote:
> > > Hi,
> > >
> > > I have been able to build with my custom layout
> > project structure.  I have been looking for a way to
> > reference all the jars in local lib directory in the build.
> > I only see compile.with which uses Artifacts.  I look at the
> > source code and, mostly because I am pretty new to buildr, I
> > still do not see how I can do that.  I am certain that there
> > must be a simple way to just reference local jars without
> > resorting to Artifacts and repositories downloads.  Any help
> > is appreciated.   Thanks.
> > >
> > >
> > >
> > > W.P.
> > >
> > >
> > >
> > >
>
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message