Click to See Complete Forum and Search --> : how to streamline deployment


sirpelidor
08-31-2010, 04:45 PM
Hi, I'd like to streamline part of my deployment process, but not sure how to do this...maybe using ANT or similar deploy script??

I'm using Eclipse to develop my webapp and currently, it has 2 hibernate config files, 2 log4j properties files, and 2 environment properties files. One for deployment, one for internal testing.

Format likes the following:
-hibernate.cfg.deploy.xml
-hibernate.cfg.xml
-log4j.deploy.properties
-log4j.properties
-environment.deploy.properties
-environment.properties

Whenever I'm ready to deploy, I do the following steps:
1) Eclipse - export WAR
2) save on desktop
3) open archived (.war) file, and delete all the current property/cfg files
4) rename all the *.deploy.* files to become property/cfg files
5) ftp to server

this has been quite troublesome, and sometimes i may miss out a cfg file or 2... how do you solve yours? do you write a custom deploy script or?

Thank you.

criterion9
08-31-2010, 06:05 PM
I use Netbeans and edit the ant/xml-build files when I need more advanced settings.