164 lines
7.0 KiB
XML
164 lines
7.0 KiB
XML
<?xml version="1.0" ?>
|
|
<project name="Spring.Core.Tests" default="build" xmlns="http://nant.sf.net/schemas/nant.xsd">
|
|
|
|
<include buildfile="${spring.basedir}/common-project.include" />
|
|
|
|
<!--
|
|
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
|
|
-->
|
|
|
|
<target name="build">
|
|
<!--
|
|
<copy file="../../../src/Spring/Spring.Core/Pool/Support/ISync.cs" todir="../../../CloverBuild/Pool/Support" verbose="true"/>
|
|
-->
|
|
|
|
<copy file="${iesi3.lib.dir}/Iesi.Collections.dll" todir="${current.bin.dir}" />
|
|
|
|
<csc target="library" define="${current.build.defines.csc}"
|
|
warnaserror="true"
|
|
optimize="${build.optimize}"
|
|
debug="${current.build.debug}"
|
|
output="${current.bin.dir}/${project::get-name()}.dll"
|
|
doc="${current.bin.dir}/${project::get-name()}.xml"
|
|
nostdlib="true"
|
|
noconfig="true"
|
|
>
|
|
<nowarn>
|
|
<warning number="${nowarn.numbers.test},0219,0169,0612" /> <!-- add 0414 for mono 2.0 -->
|
|
<warning number="${nowarn.numbers},1574" if="${nant.settings.currentframework=='mono-2.0'}"/>
|
|
</nowarn>
|
|
<sources failonempty="true">
|
|
<include name="**/*.cs" />
|
|
<include name="../CommonAssemblyInfo.cs" />
|
|
<exclude name="Objects\Factory\Config\ConnectionStringsVariableSourceTests.cs" if="${framework::get-target-framework() != 'net-2.0'}"/>
|
|
<exclude name="**/Fail*.cs"/>
|
|
</sources>
|
|
<resources prefix="Spring" dynamicprefix="true" failonempty="true">
|
|
<include name="**/*.resx" />
|
|
<exclude name="**/*.*sr*.resx" if="${nant.settings.currentframework == 'mono-2.0'}"/>
|
|
<include name="**/*.xsd" />
|
|
<include name="**/*.txt" />
|
|
<include name="**/*.vb" />
|
|
<include name="**/*.properties" />
|
|
<include name="**/*.xml" />
|
|
<include name="**/*.config" />
|
|
<!--
|
|
<include name="**/SimpleAppContext.xml" />
|
|
<include name="**/Factory/Attributes/*.xml" />
|
|
<include name="**/Context/Support/*.xml" />
|
|
<include name="**/aliasedObjects.xml" />
|
|
<include name="**/contextlifecycle.xml" />
|
|
-->
|
|
</resources>
|
|
<references>
|
|
<include name="mscorlib.dll"/>
|
|
<include name="Microsoft.CSharp.dll"/>
|
|
<include name="System.dll"/>
|
|
<include name="System.Core.dll"/>
|
|
<include name="System.EnterpriseServices.dll" />
|
|
<include name="System.Drawing.dll" />
|
|
<include name="System.Data.dll" />
|
|
<include name="System.Configuration.dll" />
|
|
<include name="System.Web.Services.dll" />
|
|
<include name="System.Web.dll" />
|
|
<include name="System.Runtime.Serialization.Formatters.Soap.dll" />
|
|
<include name="System.Transactions.dll" />
|
|
<include name="System.Windows.Forms.dll" />
|
|
<include name="System.Xml.dll"/>
|
|
<include name="${common.logging.lib.dir}/Common.Logging.dll"/>
|
|
<include name="${common.logging.core.lib.dir}/Common.Logging.Core.dll"/>
|
|
<include name="${current.bin.dir}/Spring.Core.dll" />
|
|
<include name="${current.bin.dir}/Spring.Aop.dll" />
|
|
<include name="${current.bin.dir}/Spring.Data.dll" />
|
|
<include name="${current.bin.dir}/Spring.Services.dll" />
|
|
<include name="${current.bin.dir}/Spring.Messaging.NMS.dll" />
|
|
<include name="${current.bin.dir}/Spring.Template.Velocity.dll" />
|
|
<include name="${nunit.lib.dir}/nunit.framework.dll"/>
|
|
<include name="${spring.basedir}/lib/Net/2.0/Rhino.Mocks.dll"/>
|
|
</references>
|
|
</csc>
|
|
|
|
<!-- Mono's al tells me Culture name sr-SP-Cyrl is not supported. Not sure if that's a limitation of my installation (James Fitzsimons) -->
|
|
<if test="${nant.settings.currentframework!='mono-2.0'}">
|
|
<!-- for some reason, on my new machine the csc task doesn't create the resource assembly for the sr-SP-Cyrl culture so do it by hand (MLP)-->
|
|
<!--
|
|
<if test="${framework::get-target-framework() != 'net-2.0'}">
|
|
<mkdir dir="${current.bin.dir}/sr-SP-Cyrl"/>
|
|
<copy file="Resources/Spring.Context.Tests.sr-SP-Cyrl.resx" todir="${current.bin.dir}/sr-SP-Cyrl"/>
|
|
<resgen input="${current.bin.dir}/sr-SP-Cyrl/Spring.Context.Tests.sr-SP-Cyrl.resx" output="${current.bin.dir}/sr-SP-Cyrl/Spring.Resources.Spring.Context.Tests.sr-SP-Cyrl.resources" />
|
|
<copy file="Resources/Tesla.sr-SP-Cyrl.resx" todir="${current.bin.dir}/sr-SP-Cyrl"/>
|
|
<resgen input="${current.bin.dir}/sr-SP-Cyrl/Tesla.sr-SP-Cyrl.resx" output="${current.bin.dir}/sr-SP-Cyrl/Spring.Resources.Tesla.sr-SP-Cyrl.resources" />
|
|
<al output="${current.bin.dir}/sr-SP-Cyrl/Spring.Core.Tests.resources.dll"
|
|
target="lib"
|
|
culture="sr-SP-Cyrl">
|
|
<sources>
|
|
<include name="${current.bin.dir}/sr-SP-Cyrl/Spring.Resources.Spring.Context.Tests.sr-SP-Cyrl.resources"/>
|
|
<include name="${current.bin.dir}/sr-SP-Cyrl/Spring.Resources.Tesla.sr-SP-Cyrl.resources" />
|
|
</sources>
|
|
</al>
|
|
</if>
|
|
-->
|
|
</if>
|
|
|
|
<copy todir="${current.bin.dir}">
|
|
<fileset basedir="${project::get-base-directory()}/Data">
|
|
<include name="**/*.xml" />
|
|
<include name="**/*.test" />
|
|
</fileset>
|
|
</copy>
|
|
<!-- copy nh libs -->
|
|
<copy todir="${current.bin.dir}" overwrite="true">
|
|
<fileset basedir="${nh3.lib.dir}">
|
|
<include name="**/*.dll" />
|
|
</fileset>
|
|
</copy>
|
|
|
|
|
|
<copy file="${project::get-base-directory()}/${project::get-name()}.dll.config"
|
|
tofile="${current.bin.dir}/${project::get-name()}.dll.config"/>
|
|
|
|
</target>
|
|
|
|
<target name="test" depends="build">
|
|
<!-- property name="test.assemblyname" value="${project::get-name()}" / -->
|
|
<call target="common.run-tests" />
|
|
</target>
|
|
<!--
|
|
<target name="test2" depends="build">
|
|
<if test="${nant.settings.currentframework!='mono-2.0'}">
|
|
<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"
|
|
appconfig="${current.bin.dir}/${project::get-name()}.dll.config" />
|
|
</nunit2outproc>
|
|
</if>
|
|
<if test="${nant.settings.currentframework=='mono-2.0'}">
|
|
<nunit2>
|
|
<formatter type="Plain" />
|
|
<formatter type="Xml" usefile="true" extension=".xml"
|
|
outputdir="${current.bin.dir}/results" />
|
|
<test assemblyname="${current.bin.dir}/${project::get-name()}.dll"
|
|
appconfig="${current.bin.dir}/${project::get-name()}.dll.config" />
|
|
</nunit2>
|
|
</if>
|
|
</target>
|
|
-->
|
|
|
|
<!--
|
|
<target name="test-mono-1.0" >
|
|
<nunit2outproc>
|
|
<formatter type="Plain" />
|
|
<formatter type="Xml" usefile="true" extension=".xml"
|
|
outputdir="${current.bin.dir}/results" />
|
|
<test assemblyname="${bin.dir}/net/1.1/${current.build.config}/${project::get-name()}.dll"
|
|
appconfig="${bin.dir}/net/1.1/${current.build.config}/${project::get-name()}.dll.config" />
|
|
</nunit2outproc>
|
|
</target>
|
|
-->
|
|
</project>
|