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" />
24 <delete dir=
"bin" failonerror=
"false" />
27 <target name=
"init" depends=
"clean">
29 <!-- <copy file="${antlr.runtime.dll}" todir="build" /> -->
32 <target name=
"build" depends=
"init,core.tests.run" />
34 <target name=
"core.compile" depends=
"init">
35 <!-- doc="${bin.dir}/${core.name}.xml" -->
40 optimize=
"${optimize}"
41 output=
"${bin.dir}/${core.assembly.name}">
43 <sources basedir=
"${core.src.dir}" defaultexcludes=
"true">
44 <include name=
"**/*.cs" />
49 <target name=
"core.tests.compile" depends=
"core.compile">
53 output=
"${bin.dir}/${core.test.assembly.name}">
55 <sources basedir=
"${core.test.src.dir}" defaultexcludes=
"true">
56 <include name=
"**/*.cs" />
60 <include name=
"${nunit.framework.dll}" />
61 <include name=
"${bin.dir}/${core.assembly.name}" />
66 <target name=
"core.tests.run" depends=
"core.tests.compile">
68 <formatter type=
"${nunit.formatter}" />
69 <test assemblyname=
"${bin.dir}/${core.test.assembly.name}" />
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" />
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" />