Refactored the Kernel registration fluent interface to be more readable, better suppo...
[castle.git] / ActiveRecord / Castle.ActiveRecord.Tests / Castle.ActiveRecord.Tests.build
blob4e155293d28d162cad6f5894b4e7d4a5c9399f99
1 <?xml version="1.0" ?>
3 <project
4 name="Castle.ActiveRecord.Tests"
5 default="test"
6 xmlns="http://nant.sf.net/release/0.85/nant.xsd"
9 <property name="root.dir" value="../.." />
10 <include buildfile="${root.dir}/common-project.xml" />
12 <target name="init" depends="common.init">
13 <property name="assembly.version" value="1.0.3.0" />
14 <property name="assembly.sign" value="false" />
15 <property name="assembly.is-cls-compliant" value="false" />
17 <assemblyfileset id="project.references" basedir="${build.dir}">
18 <include name="nunit.framework.dll"/>
19 <include name="NHibernate.dll" />
20 <include name="Iesi.Collections.dll" />
21 <include name="Nullables.dll" />
22 <include name="Castle.Core.dll" />
23 <include name="Castle.ActiveRecord.dll" />
24 <include name="Castle.Components.Validator.dll" />
25 <include name="System.Data.dll" />
26 <include name="System.Configuration.dll" />
27 </assemblyfileset>
28 </target>
30 <target name="configure-tests">
31 <property name="app.config" value="${build.dir}/${project::get-name()}.dll.config" />
33 <xmlpoke
34 file="${app.config}"
35 xpath="/configuration/activerecord/config/add[@key='dialect']/@value"
36 value="${ar.dialect}"
38 <xmlpoke
39 file="${app.config}"
40 xpath="/configuration/activerecord/config/add[@key='connection.driver_class']/@value"
41 value="${ar.connection.driver_class}"
43 <xmlpoke
44 file="${app.config}"
45 xpath="/configuration/activerecord/config/add[@key='connection.connection_string']/@value"
46 value="${ar.connection.connection_string.1}"
49 <xmlpoke
50 file="${app.config}"
51 xpath="/configuration/activerecord/config[@type='Castle.ActiveRecord.Tests.Model.Test2ARBase, Castle.ActiveRecord.Tests']/add[@key='dialect']/@value"
52 value="${ar.dialect}"
54 <xmlpoke
55 file="${app.config}"
56 xpath="/configuration/activerecord/config[@type='Castle.ActiveRecord.Tests.Model.Test2ARBase, Castle.ActiveRecord.Tests']/add[@key='connection.driver_class']/@value"
57 value="${ar.connection.driver_class}"
59 <xmlpoke
60 file="${app.config}"
61 xpath="/configuration/activerecord/config[@type='Castle.ActiveRecord.Tests.Model.Test2ARBase, Castle.ActiveRecord.Tests']/add[@key='connection.connection_string']/@value"
62 value="${ar.connection.connection_string.2}"
64 </target>
66 <target name="generate-assemblyinfo" depends="init common.generate-assemblyinfo" />
68 <target name="test" depends="init generate-assemblyinfo common.compile-tests configure-tests common.run-tests" description="Runs the tests" />
70 </project>