1 <?xml version=
"1.0" encoding='iso-
8859-
1'
?>
3 name=
"Castle.MonoRail.TestSupport"
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" />
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}"/>
33 <if test=
"${( not property::exists( 'gacutil.file' )) and file::exists( gacutil.sdk.file )}">
34 <property name=
"gacutil.file" value=
"${gacutil.sdk.file}"/>
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>
40 <if test=
"${property::exists( 'gacutil.file' )}">
41 <exec program=
"${gacutil.file}" failonerror=
"true" verbose=
"true" workingdir=
"${build.dir}">
44 <arg value=
"Castle.MonoRail.TestSupport.dll" />
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" />