1 <?xml version=
"1.0" encoding='iso-
8859-
1'
?>
2 <project name=
"activerecord" default=
"build">
4 <property name=
"base.dir" value=
"${path::get-full-path( project::get-base-directory() )}" />
5 <property name=
"bin.dir" value=
"${base.dir}/bin" />
7 <include buildfile=
"../../common.xml" />
9 <property name=
"library.dir" value=
"${base.dir}/lib" />
11 <property name=
"generator.name" value=
"Castle.ActiveRecord.Generator" />
12 <property name=
"cpnts.name" value=
"Castle.ActiveRecord.Generator.Components" />
13 <property name=
"generator.assembly.name" value=
"${generator.name}.exe" />
14 <property name=
"cpnts.assembly.name" value=
"${cpnts.name}.dll" />
15 <property name=
"cpnts.tests.assembly.name" value=
"${cpnts.name}.tests.dll" />
17 <property name=
"generator.src.dir" value=
"${base.dir}/${generator.name}" />
18 <property name=
"cpnts.src.dir" value=
"${base.dir}/${cpnts.name}" />
19 <property name=
"cpnts.tests.src.dir" value=
"${base.dir}/${cpnts.name}.Tests" />
20 <property name=
"test.assembly.name" value=
"${cpnts.name}.Tests.dll" />
22 <property name=
"version" value=
"0.0.1.0" />
25 <delete dir=
"${bin.dir}" failonerror=
"false" />
26 <mkdir dir=
"${bin.dir}" />
28 <nant buildfile=
"${base.dir}/../../copy-tasks.xml" target=
"copy-container" inheritall=
"true" />
29 <nant buildfile=
"${base.dir}/../../copy-tasks.xml" target=
"copy-netron" inheritall=
"true" />
31 <copy todir=
"${bin.dir}">
32 <fileset basedir=
"${library.dir}">
33 <include name=
"*.dll" />
38 <target name=
"build" depends=
"init, cpnts, generator.compile, copytobuilddir" />
40 <target name=
"copytobuilddir">
41 <copy todir=
"${build.dir}">
42 <fileset basedir=
"${bin.dir}">
43 <include name=
"${generator.assembly.name}" />
44 <include name=
"${generator.name}.xml" />
45 <include name=
"${cpnts.assembly.name}" />
46 <include name=
"${cpnts.name}.xml" />
47 <include name=
"ADODB.dll" />
48 <include name=
"MSDASC.dll" />
49 <include name=
"WeifenLuo.WinFormsUI.Docking.dll" />
54 <target name=
"cpnts" depends=
"cpnts.compile, cpnts.tests.compile, cpnts.tests.run" />
56 <target name=
"generator.compile">
60 optimize=
"${optimize}"
61 output=
"${bin.dir}/${generator.assembly.name}">
64 <warning number=
"1591" />
65 <warning number=
"1572" />
68 <sources basedir=
"${generator.src.dir}" defaultexcludes=
"true">
69 <include name=
"**/*.cs" />
72 <resources basedir=
"${generator.src.dir}" dynamicprefix=
"true">
73 <include name=
"**/*.resx" />
74 <include name=
"**/*.gif" />
78 <include name=
"${bin.dir}/*.dll" />
79 <include name=
"System.Drawing.dll" />
80 <include name=
"System.Windows.Forms.dll" />
81 <include name=
"System.XML.dll" />
82 <include name=
"System.Data.dll" />
87 <target name=
"cpnts.compile">
92 output=
"${bin.dir}/${cpnts.assembly.name}">
94 <sources basedir=
"${cpnts.src.dir}" defaultexcludes=
"true">
95 <include name=
"**/*.cs" />
99 <include name=
"System.Drawing.dll" />
100 <include name=
"System.Windows.Forms.dll" />
101 <include name=
"System.Data.dll" />
106 <target name=
"cpnts.tests.compile" depends=
"cpnts.compile">
110 output=
"${bin.dir}/${cpnts.tests.assembly.name}">
112 <sources basedir=
"${cpnts.tests.src.dir}" defaultexcludes=
"true">
113 <include name=
"**/*.cs" />
117 <include name=
"${nunit.framework.dll}" />
118 <include name=
"${bin.dir}/Castle.Core.dll" />
119 <include name=
"${bin.dir}/Castle.DynamicProxy.dll" />
120 <include name=
"${bin.dir}/Castle.MicroKernel.dll" />
121 <include name=
"${bin.dir}/${cpnts.assembly.name}" />
122 <include name=
"System.Data.dll" />
127 <target name=
"cpnts.tests.run" depends=
"cpnts.tests.compile">
129 <formatter type=
"${nunit.formatter}" />
130 <test assemblyname=
"${bin.dir}/${cpnts.tests.assembly.name}" />
135 <zip zipfile=
"${generator.name}.src.zip">
136 <fileset basedir=
"${base.dir}">
137 <include name=
"*.build" />
138 <include name=
"*.sln" />
139 <include name=
"${generator.src.dir}/**/*.*" />
140 <include name=
"${cpnts.src.dir}/**/*.*" />
141 <include name=
"${cpnts.tests.src.dir}/**/*.*" />
143 <exclude name=
"**/obj/Debug/*.*" />
144 <exclude name=
"**/bin/Debug/*.*" />
145 <exclude name=
"**/*.user" />
149 <zip zipfile=
"${generator.name}.${version}.zip">
151 <include name=
"${bin.dir}/*.dll" />
152 <include name=
"${bin.dir}/*.exe" />
153 <include name=
"${generator.name}.src.zip" />
157 <delete file=
"${generator.name}.src.zip" />