<?xml version="1.0" ?>
<project name="Spring.Web.Tests" default="test" xmlns="http://nant.sf.net/schemas/nant.xsd">
    <!--
        Required properties:
            * current.bin.dir           - (path) root level to build to
            * build.debug               - (true|false) debug build?
            * current.build.defines.csc - framework-specific build defines
            * lib.dir                   - framework-specific assembly references
    -->
    <target name="build">
        <!-- build Spring.Web -->
        <csc target="library" define="${current.build.defines.csc}" warnaserror="true" debug="${current.build.debug}"
            output="${current.bin.dir}/${project::get-name()}.dll" doc="${current.bin.dir}/${project::get-name()}.xml">
            <nowarn>
                <warning number="${nowarn.numbers.test}" /> <!-- 1701 -->
            </nowarn>
            <sources failonempty="true">
                <include name="**/*.cs" />
                <include name="../CommonAssemblyInfo.cs" />
            </sources>
            <resources prefix="Spring" dynamicprefix="true" failonempty="true">
                <include name="**/*.resx" />
                <include name="**/*.xsd" />
                <include name="**/*.txt" />
                <include name="**/*.xml" />
                <exclude name="Data/**/*" />
                <exclude name="obj/**/*" />
            </resources>
            <references basedir="${current.bin.dir}">
                <include name="*.dll" />
                <exclude name="${project::get-name()}.dll" />
                <exclude name="CloverRuntime.dll" />
                <include name="${lib.dir}/nunit.core.interfaces.dll" />
            </references>
        </csc>
        <copy todir="${current.bin.dir}">
            <fileset basedir="${project::get-base-directory()}/Data">
                <include name="**/*.*" />
            </fileset>
        </copy>

    </target>
    <target name="test" depends="build">
        <nunit2outproc>
            <formatter type="Plain" />
            <formatter type="Xml" usefile="true" extension=".xml" outputdir="${current.bin.dir}/results" />
            <test assemblyname="${current.bin.dir}/${project::get-name()}.dll" />
        </nunit2outproc>
    </target>
</project>
