On 9/14/05, Douglas Knudsen <[EMAIL PROTECTED]> wrote: > Curious how everyone is deploying code from an SCM tool like CVS. CVS > has an export function, but the darn thing will not overwrite files. > I just forced my team into CVS use and I'm having them use tags for > each release. I'm thinking of using ANT to > 1) perform a CVS export of module mymodule to mymodule_new folder > 2) delete mymodule folder > 3) rename mymodule_new folder to mymodule > > Any other possible approaches? I don't really want to 'checkout' the > code to the production environment either. >
Regardless of the specific details, using Ant is pretty helpful since you can abstract all of your deployment/release logic into a cross-platform container that can integrate w/ darn near anything. With Ant, all it sounds like you really need is the standard build/compile/dist set of directories. The standard ant drill: + init directories (clear everything out, so you get a clean build. can also use checkout or export, but have the problems you indicated) + CVS export into the build directory + copy to the compile directory (not necessary, but gives you a step where you can use Ant filters) + copy the results to dist dir Now you've got a dir of the latest files. If you can reach the server, you can copy straight to the server in the last step. If you need to (s)FTP/etc, Ant has tasks to help with that as well. And then you can put it all in cruisecontrol :) -- John Paul Ashenfelter CTO/Transitionpoint (blog) http://www.ashenfelter.com (email) [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218326 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

