Game Development Reference
In-Depth Information
<weekDay>Wednesday</weekDay>
<weekDay>Thursday</weekDay>
<weekDay>Friday</weekDay>
</weekDays>
</scheduleTrigger>
</triggers>
<sourcecontrol type="p4">
<view>//depot/MyProject/...</view>
<executable>C:\Program Files\Perforce\p4.exe</executable>
<client>MyServerWorkspace</client>
<user>JohnSmith</user>
<password>SuperSecretPassword1234</password>
<port>YourSourceControlMachine:1666</port>
<timeZoneOffset>0</timeZoneOffset>
<autoGetSource>true</autoGetSource>
<forceSync>false</forceSync>
</sourcecontrol>
<tasks>
<msbuild>
<executable>C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
\MSBuild.exe</executable>
<workingDirectory>C:\WorkingDir\source</workingDirectory>
<projectFile>MyProject.sln</projectFile>
<buildArgs>/p:Configuration=Debug</buildArgs>
<targets>Build;Test</targets>
<timeout>900</timeout>
<logger>C:\Program Files\CruiseControl.NET\server\ThoughtWorks
.CruiseControl.MsBuild.dll</logger>
</msbuild>
</tasks>
</project>
</cruisecontrol>
Listing 4.6. Adding the task section.
All tasks, including <msbuild> , must go inside the <tasks> block. The MSBuild
version that the <executable> tag points to is .NET 2.0. Later versions of the
.NET framework will also have newer versions of MSBuild. You can choose to
use the newer versions by changing the .NET framework version number inside
the executable path. The <workingdirectory> block points to the Visual Studio
solution directory. The <projectFile> block points to the solution we want to
build. The <buildArgs> block has the extra arguments you can pass to MSBuild.
MSBuild allows you to override project level properties with the “/property” or
“/p” arguments.
The <targets> block are the targets that will be compiled (separated by semi-
colons). These are the same targets that are defined in a MSBuild project. The
<timeout> tag can be used to tell CCNet how long to wait before shutting down
the task. If you would like to use your own custom logger, the <logger> tag can
be point to a custom DLL logger. CCNet has a default logger, but it does not
Search WWH ::




Custom Search