Support multiple service models for a component. WindsorServiceHostFactory will...
[castle.git] / MonoRail / Castle.MonoRail.TestSupport / Castle.MonoRail.TestSupport.build
blob025b41cc32d06a67c578cb6cdb24c675824baa55
1 <?xml version="1.0" encoding='iso-8859-1' ?>
2 <project
3 name="Castle.MonoRail.TestSupport"
4 default="build"
5 xmlns="http://nant.sf.net/release/0.85/nant.xsd"
8 <property name="root.dir" value="../.." />
9 <include buildfile="${root.dir}/common-project.xml" />
11 <target name="init" depends="common.init">
12 <property name="assembly.version" value="1.0.3.0" />
14 <assemblyfileset id="project.references" basedir="${build.dir}">
15 <include name="Castle.Components.Common.EmailSender.dll" />
16 <include name="Castle.MonoRail.Framework.dll" />
17 <include name="Castle.Core.dll" />
18 <include name="Cassini.dll" />
19 <include name="nunit.framework.dll" />
20 <include name="System.Web.dll" />
21 <include name="System.Configuration.dll" />
22 </assemblyfileset>
23 </target>
25 <target name="gac-install" if="${sign}">
26 <!-- find out where gacutil is -->
27 <property name="gacutil.framework.file" value="${framework::get-framework-directory( framework::get-target-framework() )}/gacutil.exe"/>
28 <property name="gacutil.sdk.file" value="${framework::get-sdk-directory( framework::get-target-framework() )}/gacutil.exe"/>
30 <if test="${( not property::exists( 'gacutil.file' )) and file::exists( gacutil.framework.file )}">
31 <property name="gacutil.file" value="${gacutil.framework.file}"/>
32 </if>
33 <if test="${( not property::exists( 'gacutil.file' )) and file::exists( gacutil.sdk.file )}">
34 <property name="gacutil.file" value="${gacutil.sdk.file}"/>
35 </if>
36 <if test="${not property::exists( 'gacutil.file' )}">
37 <echo>Could not find "gacutil" to install Castle.MonoRail.TestSupport server to GAC.</echo>
38 <echo>To run the tests you have to install it manually: gacutil /i Castle.MonoRail.TestSupport</echo>
39 </if>
40 <if test="${property::exists( 'gacutil.file' )}">
41 <exec program="${gacutil.file}" failonerror="true" verbose="true" workingdir="${build.dir}">
42 <arg value="/f" />
43 <arg value="/i" />
44 <arg value="Castle.MonoRail.TestSupport.dll" />
45 </exec>
46 </if>
47 </target>
49 <target name="generate-assemblyinfo" depends="init common.generate-assemblyinfo" />
51 <target name="build" description="Build ${project::get-name()}" depends="generate-assemblyinfo common.compile-dll gac-install" />
53 </project>