|
| 1 | +<?xml version="1.0" ?> |
| 2 | +<project name="Spring.Data.NHibernate.NestedTxSuspension.Integration.Tests" default="test" xmlns="http://nant.sf.net/schemas/nant.xsd"> |
| 3 | +<!-- |
| 4 | + Required properties: |
| 5 | + * current.bin.dir - (path) root level to build to |
| 6 | + * current.build.debug - (true|false) debug build? |
| 7 | + * current.build.defines.csc - framework-specific build defines for C# compiler |
| 8 | + --> |
| 9 | + |
| 10 | + <include buildfile="${spring.basedir}/common-project.include" /> |
| 11 | + |
| 12 | + <target name="build"> |
| 13 | + |
| 14 | + <!-- build Spring.Data.NHibernate.NestedTxSuspension.Integration.Tests --> |
| 15 | + <csc target="library" define="${current.build.defines.csc}" |
| 16 | + warnaserror="true" |
| 17 | + optimize="${build.optimize}" |
| 18 | + debug="${current.build.debug}" |
| 19 | + output="${current.bin.dir}/${project::get-name()}.dll" |
| 20 | + doc="${current.bin.dir}/${project::get-name()}.xml" |
| 21 | + nostdlib="true" |
| 22 | + noconfig="true" |
| 23 | + > |
| 24 | + <nowarn> |
| 25 | + <warning number="${nowarn.numbers.test}" /> |
| 26 | + </nowarn> |
| 27 | + <sources failonempty="true"> |
| 28 | + <include name="**/*.cs" /> |
| 29 | + <include name="../CommonAssemblyInfo.cs" /> |
| 30 | + </sources> |
| 31 | + <references> |
| 32 | + <lib> |
| 33 | + <include name="${nh4.lib.dir}"/> |
| 34 | + <include name="${iesi4.lib.dir}"/> |
| 35 | + </lib> |
| 36 | + <include name="mscorlib.dll"/> |
| 37 | + <include name="Microsoft.CSharp.dll"/> |
| 38 | + <include name="System.dll"/> |
| 39 | + <include name="System.Core.dll"/> |
| 40 | + <include name="System.Data.dll" /> |
| 41 | + <include name="System.EnterpriseServices.dll" /> |
| 42 | + <include name="${current.bin.dir}/*.dll" /> |
| 43 | + <exclude name="${current.bin.dir}/${project::get-name()}.dll" /> |
| 44 | + <exclude name="${current.bin.dir}/Spring.Data.NHibernate3*.dll" /> |
| 45 | + <exclude name="${current.bin.dir}/Spring.Data.NHibernate*Tests*.dll" /> |
| 46 | + <exclude name="${current.bin.dir}/CloverRuntime.dll" /> |
| 47 | + </references> |
| 48 | + <resources prefix="Spring.Data.NHibernate.NestedTxSuspension.Integration.Tests" dynamicprefix="true" failonempty="true"> |
| 49 | + <include name="**/*.xml" /> |
| 50 | + </resources> |
| 51 | + </csc> |
| 52 | + |
| 53 | + <!--<copy file="${project::get-base-directory()}/${project::get-name()}.dll.config" |
| 54 | + tofile="${current.bin.dir}/${project::get-name()}.dll.config"/> --> |
| 55 | + |
| 56 | + <copy file="${project::get-base-directory()}/app.config" |
| 57 | + tofile="${current.bin.dir}/${project::get-name()}.dll.config"/> |
| 58 | + |
| 59 | + |
| 60 | + </target> |
| 61 | + |
| 62 | + <target name="test" depends="build"> |
| 63 | + <!-- property name="test.assemblyname" value="${project::get-name()}" / --> |
| 64 | + <call target="common.run-tests" /> |
| 65 | + </target> |
| 66 | + |
| 67 | +</project> |
0 commit comments