I am just wondering what the solution is to setting up SVN and having it deploy to an external server with just the JSP and class files. How do you rid the src folder when deploying. What is the proper set up for this. I just want to be able to have multiple users commit work including src files but when they are deployed onto the production server i would like the file structure to exclude the src folder, .project, .classpath, etc files that I don't need.
Can you post that ant script just so I can see the procedure. Thanks for the posted answer. Just wondering how svn comes into play with this though.
kbrin80
2010-02-25 17:09:42
Sure.... I'll add it to the answer. I'll have to heavily edit an existing one I use to fit there. It may not work as edited, but will show you the general idea.
SuperMagic
2010-02-25 17:24:45
+1
A:
An easy solution would be to create an Ant build file that can build the source, JSPs and package everything up into a .war file that can then be deployed into your application server.
If you want to go with an Eclipse only solution, look at creating your project using the "Dynamic Web Project" project template. This should allow Eclipse to package your project as a .war file which you can then deploy. I believe Eclipse also allows you to configure an application server which it can then use to deploy your project (I've personally never tried this).
If I had to choose, I would go with an Ant build file, because it's less future work if you decide to move to continuous / automated builds.
Erich Douglass
2010-02-25 16:58:17