Refactored the Kernel registration fluent interface to be more readable, better suppo...
[castle.git] / Facilities / ActiveRecordIntegration / Castle.Facilities.ActiveRecordIntegration.Tests / Castle.Facilities.ActiveRecordIntegration.Tests.build
bloba8219c8770e369c05dcff0f9523b2d50227f76d2
1 <?xml version="1.0" ?>
3 <project
4 name="Castle.Facilities.ActiveRecordIntegration.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" />
15 <assemblyfileset id="project.references" basedir="${build.dir}">
16 <include name="nunit.framework.dll"/>
17 <include name="Castle.Facilities.ActiveRecordIntegration.dll" />
19 <include name="NHibernate.dll" />
20 <include name="Castle.Core.dll" />
21 <include name="Castle.Services.Transaction.dll" />
22 <include name="Castle.MicroKernel.dll" />
23 <include name="Castle.Windsor.dll" />
24 <include name="Castle.ActiveRecord.dll" />
25 <include name="Castle.Facilities.AutomaticTransactionManagement.dll" />
26 </assemblyfileset>
27 </target>
29 <target name="configure-tests">
30 <property name="app.config" value="${build.dir}/${project::get-name()}.dll.config" />
32 <xmlpoke
33 file="${app.config}"
34 xpath="/configuration/castle/facilities/facility[@id='arfacility']/config/add[@key='dialect']/@value"
35 value="${ar.dialect}"
37 <xmlpoke
38 file="${app.config}"
39 xpath="/configuration/castle/facilities/facility[@id='arfacility']/config/add[@key='connection.driver_class']/@value"
40 value="${ar.connection.driver_class}"
42 <xmlpoke
43 file="${app.config}"
44 xpath="/configuration/castle/facilities/facility[@id='arfacility']/config/add[@key='connection.connection_string']/@value"
45 value="${ar.connection.connection_string.1}"
47 </target>
49 <target name="generate-assemblyinfo" depends="init common.generate-assemblyinfo" />
51 <target name="test" depends="init generate-assemblyinfo common.compile-tests configure-tests common.run-tests" description="Runs the tests" />
53 </project>