Automatically generating a JAR in a WAR [message #180321] |
Sat, 30 September 2006 13:04  |
Eclipse User |
|
|
|
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 07:37  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.05603 seconds