This repository was archived by the owner on Apr 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdefault.build
More file actions
193 lines (160 loc) · 7.61 KB
/
default.build
File metadata and controls
193 lines (160 loc) · 7.61 KB
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?xml version="1.0"?>
<project name="NAntScript" default="debug">
<echo message="Using '${nant.settings.currentframework}' framework on '${platform::get-name()}' platform." />
<property name="project.version" value="1.2.0" overwrite="false" />
<target name="clean">
<delete file="NAntTasks/AssemblyInfo.cs" />
<delete dir="${build.dir}" failonerror="false" />
<delete>
<fileset>
<include name="*.zip" />
</fileset>
</delete>
</target>
<target name="debug" description="Setup a 'debug' build">
<property name="optimize" value="false" />
<property name="project.config" value="debug" />
<property name="build.debug" value="true" />
<property name="build.dir" value="${project::get-base-directory()}/build_${project.config}" />
</target>
<target name="release" description="Setup a 'release' build">
<property name="optimize" value="true" />
<property name="project.config" value="release" />
<property name="build.debug" value="false" />
<property name="build.dir" value="${project::get-base-directory()}/build_${project.config}" />
</target>
<target name="export" description="Create a release build, and zip it up ready for distribution">
<call target="debug" />
<call target="clean" />
<call target="release" />
<call target="clean" />
<zip zipfile="broloco.NAntScript.${project.version}.src.zip">
<fileset>
<exclude name="**/.svn/**" />
<exclude name="results/**" />
<include name="**" />
</fileset>
</zip>
<call target="release" />
<call target="build" />
<zip zipfile="broloco.NAntScript.${project.version}.${nant.settings.currentframework}.zip">
<fileset basedir="${build.dir}">
<exclude name="**/.svn/**" />
<include name="**" />
</fileset>
</zip>
</target>
<include buildfile="Tests/Tests.build" />
<target name="loadAndDef">
<loadtasks assembly="${build.dir}/bin/broloco.NAntTasks.dll" />
<taskdef name="execIfNotUpToDate" >
<nodeparams>
<nodeparam name="sourceFiles" />
<nodeparam name="targetFiles" />
<nodeparam name="do" />
</nodeparams>
<do>
<uptodate property="execIfNotUpToDate.uptodate">
<sourcefiles>
<__sourceFiles__/>
</sourcefiles>
<targetfiles>
<__targetFiles__/>
</targetfiles>
</uptodate>
<if test="${not execIfNotUpToDate.uptodate}" >
<__do__/>
</if>
</do>
</taskdef>
</target>
<target name="build">
<mkdir dir="${build.dir}/bin" />
<copy file="ReleaseNotes.txt" todir="${build.dir}" />
<asminfo output="NAntTasks/AssemblyInfo.cs" language="CSharp">
<imports>
<import namespace="System.Reflection" />
</imports>
<attributes>
<attribute type="AssemblyTitleAttribute" value="broloco NAntTasks" />
<attribute type="AssemblyDescriptionAttribute" value="broloco NAntTasks" />
<attribute type="AssemblyConfigurationAttribute" value="" />
<attribute type="AssemblyCompanyAttribute" value="broloco" />
<attribute type="AssemblyProductAttribute" value="broloco" />
<attribute type="AssemblyCopyrightAttribute" value="" />
<attribute type="AssemblyTrademarkAttribute" value="" />
<attribute type="AssemblyVersionAttribute" value="${project.version}" />
<attribute type="AssemblyDelaySignAttribute" value="false" />
</attributes>
</asminfo>
<csc target="library"
debug="${build.debug}"
optimize="${optimize}"
output="${build.dir}/bin/broloco.NAntTasks.dll"
warnaserror="true"
doc="${build.dir}/bin/broloco.NAntTasks.xml">
<references>
<include name="${nant::get-base-directory()}/NAnt.Core.dll" />
</references>
<sources>
<include name="NAntTasks/*.cs" />
</sources>
</csc>
<!-- <call target="build-docs" /> // disabling for the moment as nDoc is rather broken... http://charliedigital.com/2006/07/26/ndoc-2-is-officially-dead/ -->
<copy todir="${build.dir}">
<fileset>
<include name="licence.txt" />
<include name="readme.txt" />
</fileset>
</copy>
</target>
<target name="build-docs">
<call target="loadAndDef" />
<execIfNotUpToDate>
<sourceFiles>
<include name="${build.dir}/bin/broloco.NAntTasks.dll" />
</sourceFiles>
<targetFiles>
<include name="${build.dir}/doc/help/tasks/taskdef.html" />
</targetFiles>
<do>
<ndoc>
<assemblies basedir="${build.dir}/bin">
<include name="broloco.NAntTasks.dll" />
</assemblies>
<documenters>
<documenter name="NAnt">
<property name="OutputDirectory" value="${build.dir}/doc/help" />
<property name="SdkDocVersion" value="SDK_v1_1" />
<property name="SdkLinksOnWeb" value="true" />
<!-- set base uri used for linking to other NAnt docs -->
<property name="NAntBaseUri" value="http://nant.sourceforge.net/release/latest/help/" />
<!-- do not filter on namespace -->
<property name="NamespaceFilter" value="" />
<!-- set the name and version of the product for which docs are generated -->
<property name="ProductName" value="NAntScript" />
<property name="ProductVersion" value="${project.version}" />
<property name="ProductUrl" value="http://palfrey.github.com/NAntScript/" />
<property name="Preliminary" value="${not(project.config == 'release')}" />
<property name="DocumentAttributes" value="True" />
<property name="IncludeAssemblyVersion" value="True" />
<property name="ShowMissingParams" value="True" />
<property name="ShowMissingReturns" value="True" />
<property name="ShowMissingValues" value="True" />
</documenter>
</documenters>
</ndoc>
</do>
</execIfNotUpToDate>
<delete dir="${build.dir}/doc/help/enums" />
<delete dir="${build.dir}/doc/help/filters" />
<delete dir="${build.dir}/doc/help/functions" />
<delete dir="${build.dir}/doc/help/types" />
<copy todir="${build.dir}/doc">
<fileset basedir="doc">
<exclude name="**/.svn/**" />
<include name="**" />
</fileset>
</copy>
</target>
</project>