ant war task http://ant.apache.org/manual/CoreTasks/war.html
or maven-war-plugin http://maven.apache.org/plugins/maven-war-plugin/examples/war-overlay.html (in the case of maven you MUST adhere to the directory layout suggested) either build environment will perform these tasks for you you can ask ant-users list for more information http://ant.apache.org/mail.html or maven-users list if you prefer a version specific way to manage the build http://maven.apache.org/mail-lists.html Martin Gainty ______________________________________________ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Mon, 9 Nov 2009 12:04:12 +0000 > Subject: Deploying and building a war file > From: zigg...@gmail.com > To: users@tomcat.apache.org > > Hi all, > > I've got a query on the way web applications are deployed. I have an > application that has several jsp files and serlvets that are in > WEB-INF/classes. > > When i deploy the application all i do is do a checkout on CVS, make the > changes, rebuild the war using ANT and redeploy manually. This works fine > but now i am having some doubts on this approach. > > Basicaly if i even change one file i have to rebuild the war file meaning i > have to recompile everything. I think this is unecessary. i would like to be > able to just recompile the one file and redeploy the one file without having > to rebuild the whole war file. > > 1. How do you deploy your application? If you deploy as a war file, do you > recompile everything even if the change is to a single file or a > configuration file. > > 2. Could you provide an example on the approach you use from the point a > source file comes out from CVS to the point it get to the production > environment. (An example with a single file change would be usefull) > > 2. Do you use any tool to manage this? > > I am thinking that if i change one file i should be able to just compile > that one file and move it to the WEB-INF/classes folder into the relevant > folder. This might work but is there a better way of doing this instead of > moving it manually? > > > Thanks _________________________________________________________________ Hotmail: Trusted email with Microsoft's powerful SPAM protection. http://clk.atdmt.com/GBL/go/177141664/direct/01/ http://clk.atdmt.com/GBL/go/177141664/direct/01/