Hi Léa, although it's pretty straight-forward to compile and package all the stuff you need inside your web application, I'd rather recommend looking into maven. It's an excellent project management tool (at least from my point of view) which supports exactly what you asked for. By default, it will compile your sources, run the tests (e.g. JUnit), gather external libraries you need and package everything nicely. Moreover, Maven itself is a Java application and therefore, platform independent.
For an overview, you could consult several references, including this one: http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html Cheers Jürgen 2011/10/31 Léa Massiot <lmhe...@orange.fr> > > Hello, > > Thank you for reading my post. > > I am presently programming my Webapps inside "Eclipse". > I would like to automate the compiling and building of my source code. > I need to know which "javac", "java" (and maybe "jar") commands I should > run > from a console to generate everything that is needed for my Webapp to be > deployed properly by "Tomcat". > I want to write a batch file ("Windows") and a shell file ("Unix") to do > this work. > > Can you give me some advice, indicate me where to look for? > For instance, can I retrieve from "Eclipse" which commands are being > launched when the project is being built? Where? > > All the best, > -- > Léa > -- > View this message in context: > http://old.nabble.com/Compile%2C-build-and-prepare-Webapp-for-Tomcat-in-command-line-tp32752945p32752945.html > Sent from the Tomcat - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > >