Hi Rhett, Thanks for your help. That sounds kind of odd to me. Maybe let me rephrase my question. I do have about 30 jar files on my local project that I need to reference in the build process. Is there a simple way to include them in the classpath without resorting to Artifacts. Artifacts is great but I think there should be a simple way to include jar files locally - like the way source files are picked up. That seems to be more intuitive for simple project setup that I am trying to get at.
Thanks, W.P. --- On Thu, 2/12/09, Rhett Sutphin <[email protected]> wrote: > From: Rhett Sutphin <[email protected]> > Subject: Re: local dependencies. > To: [email protected] > Date: Thursday, February 12, 2009, 12:35 PM > Hi Watt, > > You can't do that exactly -- what you can do is define > artifacts based > on local files. You still need to give them artifact > identifiers, > though. > > Rhett > > On Feb 12, 2009, at 11:33 AM, Watt Poosanguansit 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 > <[email protected]> wrote: > > > >> From: lacton <[email protected]> > >> Subject: Re: local dependencies. > >> To: [email protected] > >> 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 > >> <[email protected]> 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. > >>> > >>> > >>> > >>> > > > > > >
