-
Notifications
You must be signed in to change notification settings - Fork 1
/
default.build
88 lines (79 loc) · 2.99 KB
/
default.build
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0"?>
<project
name="NHibernate.JetDriver"
default="build"
description="NHibernate driver and dialect for Microsoft Access"
xmlns="http://nant.sf.net/release/0.85/nant.xsd">
<property name="framework.family" value="net"/>
<property name="framework.version" value="3.5"/>
<property name="folders.lib" value="lib/${framework.family}/${framework.version}" />
<property name="folders.build" value="build" />
<property name="folders.src" value="src" />
<target name="build">
<mkdir dir="${folders.build}"/>
<copy file="src/NHibernate.JetDriver.Tests/App.config"
tofile="${folders.build}/NHibernate.JetDriver.Tests.dll.config"
if="${file::exists('src/NHibernate.JetDriver.Tests/App.config')}"
/>
<copy todir="${folders.build}" flatten="true">
<fileset>
<include name="${folders.lib}/NHibernate.dll"/>
<include name="${folders.lib}/Iesi.Collections.dll"/>
<include name="${folders.lib}/log4net.dll"/>
<include name="${folders.lib}/nunit.framework.dll"/>
<include name="${folders.lib}/MacroScope.dll"/>
<include name="${folders.src}/NHibernate.JetDriver.Tests/JetTests.db" />
</fileset>
</copy>
<csc target="library"
output="${folders.build}/NHibernate.JetDriver.dll"
>
<nowarn>
<warning number="1591" />
<!-- No XML comment for publicly visible member -->
</nowarn>
<sources basedir="src/NHibernate.JetDriver">
<include name="**/*.cs"/>
</sources>
<references>
<include name="${folders.lib}/NHibernate.dll"/>
<include name="${folders.lib}/log4net.dll"/>
<include name="${folders.lib}/MacroScope.dll"/>
</references>
</csc>
<csc target="library"
output="${folders.build}/NHibernate.JetDriver.Tests.dll"
>
<nowarn>
<warning number="1591" />
<!-- No XML comment for publicly visible member -->
</nowarn>
<sources basedir="src/NHibernate.JetDriver.Tests">
<include name="**/*.cs"/>
<include name="**/Entities/*.cs"/>
</sources>
<references>
<include name="${folders.lib}/NHibernate.dll"/>
<include name="${folders.lib}/Iesi.Collections.dll"/>
<include name="${folders.lib}/log4net.dll"/>
<include name="${folders.lib}/nunit.framework.dll"/>
<include name="${folders.lib}/MacroScope.dll"/>
<include name="${folders.build}/NHibernate.JetDriver.dll"/>
</references>
<resources basedir="src/NHibernate.JetDriver.Tests" prefix="NHibernate.JetDriver.Tests" dynamicprefix="true">
<include name="**/*.hbm.xml"/>
<exclude name="**/bin/**/*.hbm.xml"/>
<exclude name="**/obj/**/*.hbm.xml"/>
</resources>
</csc>
</target>
<target name="test"
depends="build">
<exec program="Tools/nunit/nunit-console-x86.exe">
<arg line="${folders.build}/NHibernate.JetDriver.Tests.dll /xml:${folders.build}/NHibernate.JetDriver.Tests.dll-results.xml " />
</exec>
</target>
<target name="clean">
<delete dir="${folders.build}" failonerror="false"/>
</target>
</project>