Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Automatically generating a JAR in a WAR
Automatically generating a JAR in a WAR [message #180321] Sat, 30 September 2006 17:04 Go to next message
Eclipse UserFriend
Originally posted by: ssl.radium.jvb.tudelft.nl

Hi,
WTP allows you to export a WAR of you web project, however, in putting
your classes inside the WAR, it puts my classfiles in the directory
structure under WEB-INF/classes. Instead of this, I'd like it to package
the classes in a JAR and put that in the WAR under WEB-INF/lib. Is there
any way to do this?
Regards,
Maarten
Re: Automatically generating a JAR in a WAR [message #180412 is a reply to message #180321] Mon, 02 October 2006 11:37 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1346
Registered: July 2009
Senior Member
Put those classes in their own Java Project. Then, open the Properties
dialog of your web project and switch to the J2EE Module Dependences
page. Select the Java Project as a dependency of the web project. This
will accomplish what you want.

Cheers,
Larry

Maarten wrote:
> Hi,
> WTP allows you to export a WAR of you web project, however, in putting
> your classes inside the WAR, it puts my classfiles in the directory
> structure under WEB-INF/classes. Instead of this, I'd like it to package
> the classes in a JAR and put that in the WAR under WEB-INF/lib. Is there
> any way to do this?
> Regards,
> Maarten
>
Previous Topic:preferred mechanism for putting jars into shared/lib
Next Topic:Re: EMF Model Synchrinization with Multipage Editor (Tree based Editor and Text Editor)
Goto Forum:
  


Current Time: Wed May 24 23:28:06 GMT 2017

Powered by FUDForum. Page generated in 0.01379 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software