GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / cruise / build.xml
blob75903d9869113132724f135d44f81c08ff001b90
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"/>
8         
9         <!--
10         label is given by CruiseControl, provides a default value here for the case where
11         the admin starts this script manually.
12         -->
13         <property name="label" value="manualBuild"/>
14         
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}"/>
20                 </exec>
21         
22                 <chmod dir="../bin" includes="*.sh" perm="755"/>
23         </target>
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"/>
28                 </exec-->
29                 <ant dir=".." antfile="build.xml" target="cruise">
30                         <property name="buildnumber" value="${label}"/>
31                         <property name="grails.javadoc" value="dist/doc/api"/>
32                 </ant>
33                 <echo message="*** Grails build successfully ended          ***"/>
34         </target>
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}"/>
40         </exec>
41         <exec executable="svn" failonerror="true">
42             <arg line="--username dierk --non-interactive"/>
43             <arg line="rm -m '' ${svn.tag}/LAST_BUILD"/>
44         </exec>
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"/>
48         </exec>
49         </target>
50         
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 -->
55                 </copy>
56         </target>
58         <target name="testCVS">
59                 <cvs cvsroot="${cvs.repository}" command="log"/>
60         </target>
61                         
62 </project>