Java Reference
In-Depth Information
called config.xml. You can find the config script in the $ CC_HOME folder, and if you
look at it, you should see something like listing 11.1.
Listing 11.1
CruiseControl's config.xml
B
<cruisecontrol>
<project name="connectfour">
C
D
<listeners>
<currentbuildstatuslistener
file="logs/${project.name}/status.txt"/>
</listeners>
E
<bootstrappers>
<antbootstrapper
anthome="apache-ant-1.7.0"
buildfile="projects/${project.name}/build.xml"
target="clean" />
</bootstrappers>
F
G
<modificationset quietperiod="30">
<!-- touch any file in connectfour project to trigger a build -->
<filesystem folder="projects/${project.name}"/>
</modificationset>
H
<schedule interval="300">
<ant anthome="apache-ant-1.7.0"
buildfile="projects/${project.name}/build.xml"/>
</schedule>
I
<log>
<merge dir="projects/${project.name}/target/test-results"/>
</log>
J
<publishers>
<onsuccess>
<artifactspublisher
dest="artifacts/${project.name}"
file="projects/${project.name}/target/${project.name}.jar"/>
</onsuccess>
</publishers>
</project>
</cruisecontrol>
This config file describes the build for the connectfour project. We'll walk through it
and explain what the different parts mean, so that later you can modify the script with
your project's configurations.
We start with a global cruisecontrol tag b , which is required, and inside that
global tag we list all the projects we want to build C . We can have multiple projects
being built, but that means that we must give all the projects a distinct name (using
the name attribute of the project tag).
 
Search WWH ::




Custom Search