forked from rdavanzo/NHibernate-Search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.build
100 lines (88 loc) · 3.78 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
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" ?>
<project
name="NHibernate.Search"
default="build"
description="NHibernate Search - Integration with Lucene.NET"
xmlns="http://nant.sourceforge.net/release/0.92/nant.xsd">
<property name="framework.family" value="${framework::get-family(framework::get-target-framework())}"/>
<property name="framework.version" value="${framework::get-version(framework::get-target-framework())}"/>
<property name="folders.lib" value="lib" />
<property name="folders.build" value="build" />
<property name="folders.packages" value="src/packages" />
<target name="clean" description="aasd">
<delete dir="${folders.build}" failonerror="false"/>
</target>
<target name="build" depends="clean">
<mkdir dir="${folders.build}"/>
<csc target="library"
output="${folders.build}/NHibernate.Search.dll">
<nowarn>
<warning number="1591" />
<warning number="0618" />
<warning number="0672" />
<!-- No XML comment for publicly visible member -->
</nowarn>
<sources basedir="src/NHibernate.Search">
<include name="**/*.cs"/>
</sources>
<references>
<include name="${folders.packages}/NHibernate.3.3.1.4000/lib/Net35/NHibernate.dll"/>
<include name="${folders.packages}/Iesi.Collections.3.3.1.4000/lib/Net35/Iesi.Collections.dll"/>
<include name="${folders.packages}/Lucene.Net.2.9.4.1/lib/net40/Lucene.Net.dll"/>
<include name="${folders.packages}/SharpZipLib.0.86.0/lib/20/ICSharpCode.SharpZipLib.dll"/>
</references>
<resources basedir="src/NHibernate.Search" prefix="NHibernate.Search" dynamicprefix="true">
<include name="**/*.xsd"/>
<exclude name="**/bin/**/*.xsd"/>
<exclude name="**/obj/**/*.xsd"/>
</resources>
</csc>
<csc target="library"
output="${folders.build}/NHibernate.Search.Tests.dll" >
<nowarn>
<warning number="1591" />
<warning number="0618" />
<warning number="0672" />
<!-- No XML comment for publicly visible member -->
</nowarn>
<sources basedir="src/NHibernate.Search.Tests">
<include name="**/*.cs"/>
</sources>
<references>
<include name="${folders.packages}/NHibernate.3.3.1.4000/lib/Net35/NHibernate.dll"/>
<include name="${folders.packages}/Iesi.Collections.3.3.1.4000/lib/Net35/Iesi.Collections.dll"/>
<include name="${folders.packages}/Lucene.Net.2.9.4.1/lib/net40/Lucene.Net.dll"/>
<include name="${folders.packages}/SharpZipLib.0.86.0/lib/20/ICSharpCode.SharpZipLib.dll"/>
<include name="${folders.packages}/Log4net.2.0.0/lib/net40-full/log4net.dll"/>
<include name="${folders.packages}/NUnit.2.6.0.12054/lib/nunit.framework.dll"/>
<include name="${folders.build}/NHibernate.Search.dll"/>
</references>
<resources basedir="src/NHibernate.Search.Tests" prefix="NHibernate.Search.Tests" dynamicprefix="true">
<include name="**/*.hbm.xml"/>
<exclude name="**/bin/**/*.hbm.xml"/>
<exclude name="**/obj/**/*.hbm.xml"/>
</resources>
</csc>
<copy file="src/NHibernate.Search.Tests/App.config"
tofile="${folders.build}/NHibernate.Search.Tests.dll.config"
if="${file::exists('src/NHibernate.Search.Tests/App.config')}"
/>
<copy todir="build" flatten="true">
<fileset>
<include name="${folders.packages}/NHibernate.3.3.1.4000/lib/Net35/NHibernate.dll"/>
<include name="${folders.packages}/Iesi.Collections.3.3.1.4000/lib/Net35/Iesi.Collections.dll"/>
<include name="${folders.packages}/Lucene.Net.2.9.4.1/lib/net40/Lucene.Net.dll"/>
<include name="${folders.packages}/SharpZipLib.0.86.0/lib/20/ICSharpCode.SharpZipLib.dll"/>
</fileset>
</copy>
</target>
<target name="test"
depends="build">
<nunit2>
<formatter type="Xml"
usefile="true"
extension=".xml" />
<test assemblyname="${folders.build}/NHibernate.Search.Tests.dll"/>
</nunit2>
</target>
</project>