-
Notifications
You must be signed in to change notification settings - Fork 1
/
PMS.build
105 lines (94 loc) · 4.09 KB
/
PMS.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
101
102
103
104
105
<?xml version="1.0"?>
<project name="PMS" default="help" basedir=".">
<!-- ================ -->
<!-- HELP -->
<!-- ================ -->
<target name="help" description="Show some help information about this build file.">
<echo message="Available targets are : " />
<echo message=" - build : solution compilation." />
<echo message=" - tests : Execute the unit tests." />
<echo message=" - documentation : generate html and chm documentation." />
<echo message=" - complete : build, tests and documentation." />
</target>
<!-- ================= -->
<!-- Complete tasks -->
<!-- ================= -->
<target name="complete" description="Do the full integration process.">
<echo message="Starting integration process." />
<call target="build" />
<call target="tests" />
<call target="documentation" />
</target>
<!-- ================ -->
<!-- MS Build -->
<!-- ================ -->
<target name="build" description="Build of the solution using the release configuration.">
<property name="msbuild.property" value="OutDir=..\Output\"/>
<property name="msbuild.path" value="C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\"/>
<exec program="msbuild.exe" basedir="${msbuild.path}">
<arg value="/p:${msbuild.property}" />
<arg value="/t:rebuild" />
<arg value="/v:m" />
</exec>
</target>
<!-- ================ -->
<!-- Unit tests -->
<!-- ================ -->
<target name="tests" depends="build">
<nunit2>
<formatter type="Plain" usefile="true" extension=".xml"/>
<test assemblyname="Output\PMS.UnitTests.dll" appconfig="Output\PMS.UnitTests.dll.config" />
</nunit2>
</target>
<!-- ================ -->
<!-- DOCUMENTATION -->
<!-- ================ -->
<target name="documentation" depends="build">
<ndoc failonerror="false">
<assemblies basedir="Output\">
<include name="PMS.Data.dll" />
<include name="PMS.Data.SqlClient.dll" />
<include name="PMS.Entities.dll" />
<include name="PMS.UnitTests.dll" />
</assemblies>
<documenters>
<documenter name="MSDN">
<property name="OutputDirectory" value="Output\Doc" />
<property name="HtmlHelpName" value="Documentation" />
<property name="HtmlHelpCompilerFilename" value="hhc.exe" />
<property name="IncludeFavorites" value="False" />
<property name="Title" value="PMS .Net documentation" />
<property name="SplitTOCs" value="False" />
<property name="DefaulTOC" value="" />
<property name="ShowVisualBasic" value="True" />
<property name="ShowMissingSummaries" value="True" />
<property name="ShowMissingRemarks" value="False" />
<property name="ShowMissingParams" value="True" />
<property name="ShowMissingReturns" value="True" />
<property name="ShowMissingValues" value="True" />
<property name="DocumentInternals" value="False" />
<property name="DocumentProtected" value="True" />
<property name="DocumentPrivates" value="False" />
<property name="DocumentEmptyNamespaces" value="False" />
<property name="IncludeAssemblyVersion" value="True" />
<property name="CopyrightText" value="" />
<property name="CopyrightHref" value="" />
<property name="OutputTarget" value="HtmlHelpAndWeb" />
<property name="UseNamespaceDocSummaries" value="True" />
</documenter>
</documenters>
</ndoc>
</target>
<!-- ================ -->
<!-- Gen Code -->
<!-- ================ -->
<target name="gencode" description="Generation of the DAL source code using the .NetTiers templates and CodeSmith console.">
<property name="nettiers.template" value="c:\program files\NetTiers\Templates\NetTiers.cst" unless="${property::exists('nettiers.path')}"/>
<property name="nettiers.propertyset" value="Northwind.xml"/>
<property name="codesmith.path" value="c:\Program files\Codesmith\2.6\"/>
<exec program="cs" basedir="${codesmith.path}">
<arg value="/template:${nettiers.template}" />
<arg value="/propertyset:${nettiers.propertyset}" />
</exec>
</target>
</project>