Automatically copy new Jar file to Tomcat project WEB-INF/lib folder
- by The D Williams
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.