Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
adam.lipscombe@qucs.co.uk
Post subject: How to include only 1 of my libraires in a war file?  PostPosted: Jun 01, 2009 - 01:46 PM
Registered Member
Registered Member


Joined: Feb 28, 2007
Posts: 20

My webapp uses tomcat 6.0.18 and has 32 required jar files held in a /lib direrctory. These are defined as libraries (Project -> Properties -> Java Build Path -> Libraries) in my project.

I now want to only include one of these libraries in the war file. The other libraries are going to be deployed once only to the tomcat "common/lib" directory and will no longer be included in the war file. they are still needed to build the application however.

Is there anyway to choose a subset of libraries to include on the war file?
 
 View user's profile Send private message  
Reply with quote Back to top
support-nipun
Post subject: RE: How to include only 1 of my libraires in a war file?  PostPosted: Jun 01, 2009 - 04:22 PM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8013

Hi,
I would suggest you create a new user library with this single library and add the user library to the build path. You can then go to Windows > Prefs > MyEclipse > Java Enterprise Project > Web Project > Deployment and make sure only "JARs from user libraries" is checked under library deployment policies. That should get only the 1 library you want to be deployed with your project.

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits