This project is read-only.

<?xml version="1.0"?><!-- Note: This file was originally generated by Genie
-->
<!--
*** Master Build File ***
Builds all projects that have a build file.
-->
<project name="masterBuild" default="go" basedir=".">

<!-- TARGET: go
This lists everything that needs to be built.
The order is important!

-->
<target name="go" depends="
OnStart
, ClearTests

, BuildAgile.Common.Silverlight
, BuildAgile.Common
" >
</target>
<!-- TARGET: BuildOnly
Builds all of the listed projects without running any tests!
-->
<target name="BuildOnly" depends="

, BuildOnlyAgile.Common.Silverlight
, BuildOnlyAgile.Common
" >

<property name="message" value="Projects successfully built WITHOUT ANY TESTING!"/>
<call target="showProgress" />
</target>

<!-- TARGET: BuildAgile.Common.Silverlight -->
<target name="BuildAgile.Common.Silverlight" description="Building Agile.Common.Silverlight">
<property name="message" value="Build Agile.Common.Silverlight"/>
<call target="showProgress" />
<nant buildfile="${project::get-base-directory()}\Agile\Agile.Common\Agile.Common.Silverlight.build" target="go" inheritall="true" verbose="true" failonerror="true" />
</target>
<!-- TARGET: BuildOnlyAgile.Common.Silverlight -->
<target name="BuildOnlyAgile.Common.Silverlight" description="Building Agile.Common.Silverlight">
<property name="message" value="BuildOnly Agile.Common.Silverlight"/>
<call target="showProgress" />
<nant buildfile="${project::get-base-directory()}\Agile\Agile.Common\Agile.Common.Silverlight.build" target="build" inheritall="true" verbose="true" failonerror="true" />
</target>

<!-- TARGET: BuildAgile.Common -->
<target name="BuildAgile.Common" description="Building Agile.Common">
<property name="message" value="Build Agile.Common"/>
<call target="showProgress" />
<nant buildfile="${project::get-base-directory()}\Agile\Agile.Common\Agile.Common\Agile.Common.build" target="go" inheritall="true" verbose="true" failonerror="true" />
</target>
<!-- TARGET: BuildOnlyAgile.Common -->
<target name="BuildOnlyAgile.Common" description="Building Agile.Common">
<property name="message" value="BuildOnly Agile.Common"/>
<call target="showProgress" />
<nant buildfile="${project::get-base-directory()}\Agile\Agile.Common\Agile.Common\Agile.Common.build" target="build" inheritall="true" verbose="true" failonerror="true" />
</target>


<target name="OnStart" description="Called when build starts">
<echo>Renaming the log file to 'PreviousBuildLog.txt'.</echo>
<move file="BuildLog.txt" tofile="PreviousBuildLog.txt" overwrite="true" failonerror="false"/>
<property name="message" value="OnStart"/>
<call target="showProgress" />
<property name="nant.onsuccess" value="OnSuccess" />
<property name="nant.onfailure" value="OnFailure" />
</target>

<!-- TARGET: ClearTests
Moves all existing test results to the Previous results directory.
NOTE: All test results need to be copied to C:\Build\TestResults (Or whatever your RootDrive is)
-->
<target name="ClearTests" description="Clear test results">
<property name="TestResultsDir" value ="${directory::get-current-directory()}\Build\TestResults" />
<property name="message" value="ClearTests"/>
<property name="DateDirectory" value="${TestResultsDir}\RunDate ${datetime::get-day(datetime::now())}.${datetime::get-month(datetime::now())}.${datetime::get-year(datetime::now())}" />
<property name="TimeDirectory" value="RunTime ${datetime::get-hour(datetime::now())}.${datetime::get-minute(datetime::now())}" />
<property name="PreviousResultsDirectory" value="${DateDirectory}\${TimeDirectory}" />
<call target="showProgress" />

<echo message="Moving previous test results to ${PreviousResultsDirectory}" />
<move todir="${PreviousResultsDirectory}" overwrite="true" failonerror="false">
<fileset>
<include name="${TestResultsDir}\*.xml"/>
</fileset>
</move>
<mkdir dir="${TestResultsDir}" failonerror="false" />
</target>

<!-- TARGET: progress
Adds the current progress the BuildLog
-->
<target name="showProgress" description="Show progress">
<echo message="PROGRESS: ${message}"/>
<sysinfo/>
<exec
program="${environment::get-variable('ComSpec')}"
basedir="."
commandline="/c echo %date% %time% ${message} >>BuildLog.txt"
output="results.txt"
workingdir="."
failonerror="false"/>
</target>

<target name="OnSuccess" description="Called when build succeeds">
<property name="message" value="OnSuccess"/>
<call target="showProgress" />
</target>

<target name="OnFailure" description="Called when build fails">
<property name="message" value="OnFailure"/>
<call target="showProgress" />
</target>

</project>

Last edited Feb 23, 2009 at 8:04 AM by wallism, version 1

Comments

No comments yet.