Cruise Control for Ant Build

July 7th, 2009 by Leave a reply »

Ref. url:
http://cruisecontrol.sourceforge.net/gettingstartedsourcedist.html#Before_you_Start
Download:
http://cruisecontrol.sourceforge.net/download.html

Should Have Java and Ant installed.

1. Copy the downloaded cruisecontrol-2.8.2.zip file & unzip to your installation folder.

2. change directory to cc_unzipped folder/main

3. enter the command ant -Dtest.skip=true
*I disabled Junit test after the compilation since it doesn’t work for me

After building, to confirm that the installation is consistent, start a command shell and run the following command (make sure you replace INSTALL_DIR with the actual installation directory):

java -jar INSTALL_DIR/main/dist/cruisecontrol-launcher.jar
**DON'T worry this should show an error saying config.xml is not found!

4. Create a directory “work” under the cruise-control root folder(ie, the unzipped folder)

5. change directory to the newly created ‘work’ directory and create three new folders named as: artifacts, logs, projects. Then copy our project folder to work/project

6. Create a new build.xml (vi/touch work/build.xml)
* I tried to paste my build.xml but it is truncated. So please mail me if you need one @ anpl1980@gmail.com

please read this : http://brennan.offwhite.net/blog/2004/04/29/lessons-for-ant-and-cruise-control/

7. Create work/config.xml
Eg:
* I tried to paste my build.xml but it is truncated. So please mail me if you need one @ anpl1980@gmail.com

–>

Leave a Reply