Added support for the time span primitive
[castle.git] / common.inc
blob4dac305bf54ab336ab0429f3e6c2610c27422ffb
1 <?xml version="1.0"?>
2 <project name="Common Build Properties">
3 <!-- Common properties that allow overrides -->
5 <property name="rootbuild.dir" value="${directory::get-current-directory()}" />
7 <property name="build.dir" value="${rootbuild.dir}/build/${framework::get-target-framework()}" />
9 <property name="strong" value="STRONG" unless="${property::exists('strong')}" />
10 <property name="debug" value="false" unless="${property::exists('debug')}" />
11 <property name="optimize" value="true" unless="${property::exists('optimize')}" />
12 <property name="trace" value="true" unless="${property::exists('trace')}" />
13 <property name="doc.dir" value="${base.dir}/docs" />
14 <property name="nunit.formatter" value="Plain" unless="${property::exists('nunit.formatter')}" />
15 <property name="os" value="${operating-system::to-string(environment::get-operating-system())}" />
16 <property name="isWindows" value="${string::starts-with(os, 'Microsoft Windows')}" />
17 <property name="isMono" value="${string::starts-with(framework::get-target-framework(),'mono')}" />
19 <!-- Global compilation defines -->
20 <property name="define" value="TRACE" if="${trace}" />
21 <!-- Framework 2.0 defines -->
22 <property name="define" value="${define};DOTNET2" if="${framework::get-target-framework()=='net-2.0'}"/>
23 <!-- Make sure the property exists -->
24 <property name="define" value="" unless="${property::exists('define')}" />
26 <!-- properties used to connect to database for testing -->
27 <property name="ar.dialect" value="NHibernate.Dialect.MsSql2000Dialect" overwrite="false" />
28 <property name="ar.connection.driver_class" value="NHibernate.Driver.SqlClientDriver" overwrite="false" />
29 <property name="ar.connection.connection_string.1" value="Server=(local);initial catalog=test;Integrated Security=SSPI" overwrite="false" />
30 <property name="ar.connection.connection_string.2" value="Server=(local);initial catalog=test2;Integrated Security=SSPI" overwrite="false" />
32 <!-- find out where gacutil is -->
34 <property name="gacutil.framework.file" value="${framework::get-framework-directory( framework::get-target-framework() )}\gacutil.exe"/>
35 <property name="gacutil.sdk.file" value="${framework::get-sdk-directory( framework::get-target-framework() )}\gacutil.exe"/>
37 <description>Find "gacutil" and show error message if it was not found.</description>
38 <if test="${( not property::exists( 'gacutil.file' )) and file::exists( gacutil.framework.file )}">
39 <property name="gacutil.file" value="${gacutil.framework.file}"/>
40 </if>
41 <if test="${( not property::exists( 'gacutil.file' )) and file::exists( gacutil.sdk.file )}">
42 <property name="gacutil.file" value="${gacutil.sdk.file}"/>
43 </if>
44 <if test="${not property::exists( 'gacutil.file' )}">
45 <echo>Could not find "gacutil" to install Castle.MonoRail.TestSupport server to GAC.</echo>
46 <echo>To run the tests you have to install it manually: gacutil /i Castle.MonoRail.TestSupport</echo>
47 </if>
49 <!-- set up caspol.exe location -->
51 <property name="caspol.file" value="${framework::get-framework-directory( framework::get-target-framework() )}\caspol.exe"/>
53 <!-- find out where nunit.framework.dll is -->
55 <property name="lib.dir"
56 value="${path::combine(nant::get-base-directory(), 'lib')}"
57 dynamic="true" />
59 <property name="lib.family.dir"
60 value="${path::combine(lib.dir,framework::get-family(framework::get-target-framework()))}"
61 dynamic="true" />
63 <!-- for nant 0.85 rc2 or higher -->
65 <property name="lib.framework.dir"
66 value="${path::combine(lib.family.dir, version::to-string(framework::get-version(framework::get-target-framework())))}"
67 dynamic="true" />
69 <!-- Uncomment this block for nant backward compatibility
70 <property name="lib.framework.dir"
71 value="${path::combine(lib.family.dir, framework::get-version(framework::get-target-framework()))}"
72 dynamic="true" />
73 -->
75 <property name="nunit.framework.dll"
76 value="${path::combine(lib.framework.dir, 'nunit.framework.dll')}" />
78 <property name="nant.tasks.nunit2"
79 value="False"
80 unless="${property::exists('nant.tasks.nunit2')}" />
82 </project>