static void

CCNet.config template

Uses nant.build script and assumes a C:\Build directory with subfolders Src, Deploy and Nant (containing Nant, of course).

<cruisecontrol>
    <
project>
        <
name>comp</name>
        <
workingDirectory>c:\Build\Src</workingDirectory>
        <
artifactDirectory>c:\Build\Deploy</artifactDirectory>
        <
webURL>http://localhost/ccnet/</webURL>
        <!--
allow 20 seconds after last change for non-atomic checkins -->
        <
modificationDelaySeconds>20</modificationDelaySeconds>
        <
publishers>
            <
xmllogger logDir="C:\Program Files\CruiseControl.NET\server"/>
        </
publishers>
        <
sourcecontrol type="filtered">
            <
sourceControlProvider type="vss" autoGetSource="true" applyLabel="false">
                <
executable>"C:\Program Files\Microsoft Visual Studio\Common\VSS\win32\ss.exe" </executable>
                <
project>"$/MyProject"</project>
                <
ssdir>"\\sshost\ssdirectory\"</ssdir>
                <
username>VSSUserName</username>
                <
password/>
                <
workingDirectory>c:\Build\Src</workingDirectory>
            </
sourceControlProvider>
            <
exclusionFilters>
                <!--
exclude compiled code, javascript, stylesheets and pure html -->
                <
pathFilter>
                    <
pattern>$/**/*.tmp</pattern>
                </
pathFilter>
                <
pathFilter>
                    <
pattern>$/**/*.dll</pattern>
                </
pathFilter>
                <
pathFilter>
                    <
pattern>$/**/*.js</pattern>
                </
pathFilter>
                <
pathFilter>
                    <
pattern>$/**/*.html</pattern>
                </
pathFilter>
                <
pathFilter>
                    <
pattern>$/**/*.css</pattern>
                </
pathFilter>
            </
exclusionFilters>
        </
sourcecontrol>
        <
build type="nant">
            <!--
calls the full target in nant.build in C:\Build -->
            <
executable>c:\Build\nant\bin\nant.exe</executable>
            <
baseDirectory>c:\Build</baseDirectory>
            <
logger>NAnt.Core.XmlLogger</logger>
            <
buildFile>nant.build</buildFile>
            <
targetList>
                <
target>full</target>
            </
targetList>
            <
buildTimeout>300000</buildTimeout>
        </
build>
        <
tasks>
            <
merge>
                <
files>
                    <
file>C:\Build\fxcop*.xml</file>
                    <!--
Other files to merge for your build would also be included here -->
                </
files>
            </
merge>
        </
tasks>
        <
triggers>
            <!--
check every 5 minutes -->
            <
intervalTrigger seconds="300" buildCondition="IfModificationExists"/>
        </
triggers>
    </
project>
</
cruisecontrol>