1 <project name="grails-cruisecontrol-starter" default="cruise">
4 <property name="svn.tag" value="https://svn.codehaus.org/grails/tags/builds"/>
5 <property name="dir.checkout" value=".."/>
7 <target name="cruise" depends="update, copy-reporting-app, delegate, tagLastBuild"/>
10 label is given by CruiseControl, provides a default value here for the case where
11 the admin starts this script manually.
13 <property name="label" value="manualBuild"/>
15 <target name="update">
16 <echo message="Getting the detected modifications...."/>
17 <exec executable="svn">
18 <arg line="--username dierk --non-interactive"/>
19 <arg line="update ${dir.checkout}"/>
22 <chmod dir="../bin" includes="*.sh" perm="755"/>
24 <target name="delegate">
25 <echo message="*** Starting the Grails specific build parts ***"/>
26 <!--exec dir=".." executable="ant">
27 <arg line="-Dbuildnumber=${label} -Dgrails.javadoc=dist/doc/api -lib lib cruise"/>
29 <ant dir=".." antfile="build.xml" target="cruise">
30 <property name="buildnumber" value="${label}"/>
31 <property name="grails.javadoc" value="dist/doc/api"/>
33 <echo message="*** Grails build successfully ended ***"/>
36 <target name="tagLastBuild">
37 <exec executable="svn" failonerror="true">
38 <arg line="--username dierk --non-interactive"/>
39 <arg line="copy -m '' ${dir.checkout} ${svn.tag}/${label}"/>
41 <exec executable="svn" failonerror="true">
42 <arg line="--username dierk --non-interactive"/>
43 <arg line="rm -m '' ${svn.tag}/LAST_BUILD"/>
45 <exec executable="svn" failonerror="true">
46 <arg line="--username dierk --non-interactive"/>
47 <arg line="copy -m '' ${svn.tag}/${label} ${svn.tag}/LAST_BUILD"/>
51 <target name="copy-reporting-app">
52 <fail unless="reporting-app-dir" message="The property reporting-app-dir must be set from outside!" />
53 <copy todir="${reporting-app-dir}" > <!-- overwrite="true" can be needed occasionally -->
54 <fileset dir="reporting-app" /> <!-- only changes to web.xml need context reload -->
58 <target name="testCVS">
59 <cvs cvsroot="${cvs.repository}" command="log"/>