Simple impl to MockRailsEngineContext.Url
[castle.git] / Tools / ManagedExtensions / MExtensions.build
blob20c2e041b464f4986e967ee22bdc0fde2b1b16d2
1 <?xml version="1.0" encoding='iso-8859-1' ?>
2 <project name="mextensions" default="build">
4 <property name="base.dir" value="." />
5 <property name="bin.dir" value="${base.dir}/bin" />
6 <property name="library.dir" value="${base.dir}/lib" />
7 <property name="doc.dir" value="${base.dir}/doc" />
8 <property name="src.dir" value="${base.dir}" />
10 <property name="core.src.dir" value="${src.dir}/ManagementExtensions" />
11 <property name="core.test.src.dir" value="${src.dir}/ManagementExtensionsTest" />
12 <property name="core.name" value="Castle.ManagementExtensions" />
13 <property name="core.assembly.name" value="${core.name}.dll" />
14 <property name="core.test.assembly.name" value="${core.name}.Test.dll" />
16 <property name="strong" value="STRONG" unless="${property::exists('strong')}" />
17 <property name="debug" value="false" />
18 <property name="optimize" value="true" />
19 <property name="version" value="aplha-1" />
21 <include buildfile="../../common.xml" />
23 <target name="clean">
24 <delete dir="bin" failonerror="false" />
25 </target>
27 <target name="init" depends="clean">
28 <mkdir dir="bin" />
29 <!-- <copy file="${antlr.runtime.dll}" todir="build" /> -->
30 </target>
32 <target name="build" depends="init,core.tests.run" />
34 <target name="core.compile" depends="init">
35 <!-- doc="${bin.dir}/${core.name}.xml" -->
36 <csc
37 define="${strong}"
38 target="library"
39 debug="${debug}"
40 optimize="${optimize}"
41 output="${bin.dir}/${core.assembly.name}">
43 <sources basedir="${core.src.dir}" defaultexcludes="true">
44 <include name="**/*.cs" />
45 </sources>
46 </csc>
47 </target>
49 <target name="core.tests.compile" depends="core.compile">
50 <csc
51 target="library"
52 debug="${debug}"
53 output="${bin.dir}/${core.test.assembly.name}">
55 <sources basedir="${core.test.src.dir}" defaultexcludes="true">
56 <include name="**/*.cs" />
57 </sources>
59 <references>
60 <include name="${nunit.framework.dll}" />
61 <include name="${bin.dir}/${core.assembly.name}" />
62 </references>
63 </csc>
64 </target>
66 <target name="core.tests.run" depends="core.tests.compile">
67 <nunit2 >
68 <formatter type="${nunit.formatter}" />
69 <test assemblyname="${bin.dir}/${core.test.assembly.name}" />
70 </nunit2>
71 </target>
73 <target name="dist">
74 <zip zipfile="${core.name}.src.${version}.zip">
75 <fileset basedir="${base.dir}">
76 <include name="License.txt" />
77 <include name="Readme.txt" />
78 <include name="Changes.txt" />
79 <include name="*.build" />
80 <include name="*.sln" />
81 <include name="${core.src.dir}/**/*.*" />
82 <include name="${core.test.src.dir}/**/*.*" />
84 <exclude name="**/Debug/*" />
85 <exclude name="**/obj/*" />
86 <exclude name="**/*.user" />
87 <exclude name="**/*.suo" />
88 </fileset>
89 </zip>
91 <zip zipfile="${core.name}.bin.${version}.zip">
92 <fileset basedir="${base.dir}">
93 <include name="${bin.dir}/${core.assembly.name}" />
94 <include name="License.txt" />
95 <include name="Readme.txt" />
96 <include name="Changes.txt" />
97 <include name="${core.name}.src.${version}.zip" />
98 </fileset>
99 </zip>
101 </target>
103 </project>