Automatically copy new Jar file to Tomcat project WEB-INF/lib folder

Posted by The D Williams on Stack Overflow See other posts from Stack Overflow or by The D Williams
Published on 2010-05-17T18:55:54Z Indexed on 2010/05/17 19:00 UTC
Read the original article Hit count: 284

Filed under:
|
|
|
|

I am developing a Tomcat app (actually it's a Red5 app, but this is effectively the same).

This contains the usual /WebContent/WEB-INF/lib folder, which is where I locate the various jars it uses.

Recently, I pulled a package out of my app project, and converted into a separate Jar project which was then released as open source (this resides in the same workspace).

What I want, is that when I build my Tomcat app, that Eclipse automatically pulls the latest version of the Jar I have built into its /WebContent/WEB-INF/lib folder.

This is the behaviour you get with .NET when you reference one project from another, and I guess this is why I was expecting to find some way of doing it.

At the moment, I have to manually copy/paste the Jar across each time I build it.

Of course, ideally when I build my Tomcat app it would automatically detect if the Jar project was up-to-date too, and build it if not.

Any suggestions most gratefully received.

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about java