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.
Share
Write a script (I use ant for such java projects) that promotes/copies to your production environment exactly what you want.
In my case, the ant scripts:
I have, on some projects, options to upload just changed files rather than redeploying whole applications, but that’s a design choice you’ll get to make yourself. For the larger projects I’ve worked on I’ve gravitated to deploying the whole project for each update rather than copying individual files/changes to the server. This way I can ensure the integrity of the build process and the production environment and not have to worry about random files possibly being out of sync with the rest of the project.
Generally for anything other than trivially simple project, you’ll want a real make/build environment … which you’ll have to write your self.
Ant
Maven
shell scripts
make
all are possible solutions.