Common Shared Lib on Hudson??

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Common Shared Lib on Hudson??

Munaf Sahaf
I have couple of projects that i am trying to put together into Hudson, there are few common jar files that these projects use ( eg, logging, jms, jdbc), is there  a way to create a common shared Lib on Hudson somewhere.. where i can just put these jar files and they be available for all my project builds?

Regards,
Munaf
Reply | Threaded
Open this post in threaded view
|

Re: Common Shared Lib on Hudson??

Chris Marks
I think most people use Maven or Ivy to accomplish this sort of task.  
If you build using Ant, then you should look into Ivy.  It is at http://ant.apache.org/ivy 
.

Topher

On Feb 26, 2010, at 10:28 AM, Munaf Sahaf <[hidden email]> wrote:

> I have couple of projects that i am trying to put together into  
> Hudson, there are few common jar files that these projects use ( eg,  
> logging, jms, jdbc), is there  a way to create a common shared Lib  
> on Hudson somewhere.. where i can just put these jar files and they  
> be available for all my project builds?
>
> Regards,
> Munaf

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Common Shared Lib on Hudson??

mcs130
In reply to this post by Munaf Sahaf
We do this all the time.  We have a couple of directories on our Linux server where Hudson runs, say:
 
/opt/ExternalLibraries   (contains 3rd party stuff like log4j, commons, struts, etc  JARS)
/opt/MyCompanyLibraries  (contains JARs we build from our codebase - w/ Hudson and deposit to this location)
 
Then our the dependent build job configurations which are run by Hudson have Properties set up in the Ant build build section like:
 
common.external.home=/opt/ExternalLibraries
common.mycompanylibs.home=/opt/MyCompanyLibraries
The build.xml files reference these...and it all works.
 
We don't use Maven in our environment so this works for us.
 
HTH

 
On Fri, Feb 26, 2010 at 12:28 PM, Munaf Sahaf <[hidden email]> wrote:
I have couple of projects that i am trying to put together into Hudson, there are few common jar files that these projects use ( eg, logging, jms, jdbc), is there  a way to create a common shared Lib on Hudson somewhere.. where i can just put these jar files and they be available for all my project builds?

Regards,
Munaf



--
Mark Streit