This morning, I had the pleasure of setting up an AppFuse-based project to run under CruiseControl. Normally, this is very easy to do because I have the CruiseControl setup files and instructions. However, this project uses Subversion instead of CVS. Luckily, Subversion is easy to use and I was able to modify things to work quite easily. Below are the steps you can take to modify your AppFuse project to run under CruiseControl and Subversion.
- Download svant and extract it to your work directory.
- In build.xml, change your "cvs" target to "svn" and change the tasks appropriately.
<path id="svn.classpath"> <fileset dir="svnant-1.0.0-rc1/lib" includes="*.jar"/> </path> <taskdef resource="svntask.properties" classpathref="svn.classpath"/> <target name="svn"> <delete dir="checkout/appfuse"/> <svn> <checkout url="https://svn.java.net/svn/appfuse/trunk" revision="HEAD" destPath="checkout/appfuse" /> </svn> </target>
- Modify the "test" target in build.xml to depend on "svn".
- In config.xml, change the <modificationset> to be <svn LocalWorkingCopy="/home/cc/work/checkout/appfuse"/> instead of the <cvs> equivalent.
The instructions have been documented on the wiki and checked into AppFuse's CVS.