Files
spring-net/test/Spring/Spring.Data.Integration.Tests/Spring.Data.Integration.Tests.build
markpollack f7a97bfe31 SPRNET-1268 - Spring Exceptions should pass tests to ensure compliance with .NET framework guidelines.
SPRNET-1267 - Add optimize compiler flag for release build
2009-11-10 03:04:07 +00:00

49 lines
2.3 KiB
XML

<?xml version="1.0" ?>
<project name="Spring.Data.Integration.Tests" default="test" 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
* current.build.debug - (true|false) debug build?
* current.build.defines.csc - framework-specific build defines for C# compiler
-->
<target name="build">
<!-- build Spring.Data.Integration.Tests -->
<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">
<nowarn>
<warning number="${nowarn.numbers.test}" />
<warning number="${nowarn.numbers.test},219" if="${nant.settings.currentframework=='mono-2.0'}" />
</nowarn>
<sources failonempty="true">
<include name="**/*.cs" />
</sources>
<resources basedir="Resources">
<include name="**/*" />
</resources>
<references basedir="${current.bin.dir}">
<include name="*.dll" />
<include name="System.Data.dll" if="${nant.settings.currentframework=='mono-2.0'}" />
<include name="System.Data.Common.dll" if="${nant.settings.currentframework=='mono-2.0'}" />
<include name="System.Data.OracleClient.dll" if="${nant.settings.currentframework=='mono-2.0'}" />
<include name="System.Drawing.dll" if="${nant.settings.currentframework=='mono-2.0'}" />
<include name="System.EnterpriseServices.dll" if="${nant.settings.currentframework=='mono-2.0'}" />
<include name="System.Transactions.dll" if="${nant.settings.currentframework=='mono-2.0'}" />
<include name="System.Logging.dll" if="${nant.settings.currentframework=='mono-2.0'}" />
<include name="System.Data.OracleClient.dll" />
<exclude name="${project::get-name()}.dll" />
</references>
</csc>
</target>
<target name="test" depends="build">
<!-- skipping running of tests for now -->
<!-- call target="common.run-tests" if="${test.integration.data}" / -->
</target>
</project>