Game Development Reference
In-Depth Information
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<project name="MyFirstProject">
</project>
</cruisecontrol>
Listing 4.2. Starting the CCNet project.
The <cruisecontrol> element is the header that starts each CCNet XML server
config file. For each build project that you want to add to the server, you must add
<project> blocks. These blocks encapsulate tasks, triggers, publishers, and source
control settings. Tasks run when the project starts. Triggers are actions that can
kick-start the project. Publishers are post-build events that can happen after a
build failure or state change depending on your settings.
Next we want to add the working directory, XML build log directory, project
category, and modification-checking frequency. They are all part of the project
settings. Listing 4.3 shows how we will set up the CCNet project settings.
<cruisecontrol xmlns:cb="urn:ccnet.config.builder">
<queue name="Q1" duplicates="ApplyForceBuildsReAdd"/>
<project name="MyFirstProject">
<workingDirectory>C:\WorkingDir</workingDirectory>
<artifactDirectory>C:\WorkingDir\CCNetArtifacts</artifactDirectory>
<category>Super Awesome Game</category>
<webURL> http://192.168.7.216:8080/ViewFarmReport.aspx < /webURL>
<modificationDelaySeconds>100</modificationDelaySeconds>
</project>
</cruisecontrol>
Listing 4.3. The project settings.
The project settings are made up of the following blocks:
<workingdirectory> ,
<artifactdirectory> ,
<category> ,
<webURL> ,
<modificationDelaySeconds> .
Search WWH ::




Custom Search