Wednesday August 24, 2005
Using CruiseControl with Subversion 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.
Posted in Java
at Aug 24 2005, 10:24:26 AM MDT
4 Comments
Search This Site
Recent Entries
- Secure JSON Services with Play Scala and SecureSocial
- My What's New in Spring 3.1 Presentation
- Twitter's Open Source Summit: Bootstrap 2.0 Edition
- Refreshing AppFuse's UI with Twitter Bootstrap
- 2011 - A Year in Review
- Upgrading AppFuse to Spring Security 3.1 and Spring 3.1
- What have I been working on at Taleo?
- Our Engaging Trip to Paris and Antwerp
- My HTML5 with Play Scala, CoffeeScript and Jade Presentation from Devoxx 2011
- Deploying Java and Play Framework Apps to the Cloud with James Ward
Posted by Mark Matthews on August 24, 2005 at 11:32 AM MDT #
Posted by Ashish Kulkarni on August 25, 2005 at 12:06 AM MDT #
It was quick and easy with Subversion, and yes it looks well designed.
two problems:
When the framework detects a problem, it shuts down and restarts itself. From what I see, the details are minimum and occurs every 15 minutes.
the logs have the following messages:
Then, spawning svn commands works, however has this error:
---snip--- 2005-08-30 15:48:10,914 INFO com.luntsys.luntbuild.BuildGenerator - Getting revisions for project "projectName"... 2005-08-30 15:48:10,962 DEBUG com.luntsys.luntbuild.BuildGenerator - Execute command: Executing '/usr/local/bin/svn' with arguments: 'log' 'svn://svnserver.mydomain.com:3692/projectName' '--username' 'myname' '--password' '******' '--non-interactive' '-v' '--xml' '-r' '{2005-08-30T22:33:34Z}:{2005-08-30T22:48:10Z}' The ' characters around the executable and arguments are not part of the command. ---snip---the issue is that the command exits with a non-zero status, so the build is logically broken even though everything between svn, java and ant work fine.
Off to try CruiseControl, then buildbot next.
Posted by Mike Gleeson on August 31, 2005 at 11:34 AM MDT #
Posted by Segey Pashin on October 02, 2005 at 04:32 PM MDT #