uppercutbuild 0.9.0.346.20100805 → 1.0.0.0.20100806
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/docs/README +7 -2
- data/lib/build.sh +23 -0
- data/lib/build/UppercuT.xml +1 -1
- data/lib/build/analyze.step +78 -77
- data/lib/build/analyzers/gallio.test.step +25 -26
- data/lib/build/analyzers/mbunit2.test.step +25 -28
- data/lib/build/analyzers/moma.step +29 -31
- data/lib/build/analyzers/ncover.step +32 -34
- data/lib/build/analyzers/ndepend.step +19 -12
- data/lib/build/analyzers/nitriq.step +19 -22
- data/lib/build/analyzers/nunit.test.step +37 -37
- data/lib/build/analyzers/test.step +99 -98
- data/lib/build/compile.step +68 -50
- data/lib/build/customize.build +76 -75
- data/lib/build/customizers/item.template +50 -49
- data/lib/build/default.build +171 -167
- data/lib/build/deploymentBuilder.step +103 -102
- data/lib/build/environmentBuilder.step +119 -118
- data/lib/build/gemsBuild.step +113 -112
- data/lib/build/gemsPrepare.step +157 -156
- data/lib/build/generateBuildInfo.step +108 -105
- data/lib/build/ilmerge.build +183 -182
- data/lib/build/open.build +115 -102
- data/lib/build/package.step +234 -233
- data/lib/build/policyChecks.step +81 -80
- data/lib/build/updateAssemblies.build +107 -106
- data/lib/build/uppercut.dll +0 -0
- data/lib/build/uppercut.tasks.dll +0 -0
- data/lib/build/versionBuilder.step +149 -147
- data/lib/build/versioners/git.step +106 -105
- data/lib/build/versioners/hg.step +106 -105
- data/lib/build/versioners/svn.step +112 -111
- data/lib/build/versioners/tfs.step +104 -103
- data/lib/build/zip.build +134 -162
- data/lib/deployment/scripts/database.deploy +37 -36
- data/lib/open.sh +7 -0
- data/lib/settings/UppercuT.config +76 -73
- data/lib/zip.sh +9 -0
- metadata +9 -6
data/lib/build/package.step
CHANGED
@@ -1,234 +1,235 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
-
<project name="PackageBuilder" default="go">
|
3
|
-
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
-
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
|
5
|
-
<property name="build.config.settings" value="__NONE__" overwrite="false" />
|
6
|
-
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
|
7
|
-
<property name="
|
8
|
-
<property name="
|
9
|
-
<property name="
|
10
|
-
<property name="
|
11
|
-
<property name="folder.
|
12
|
-
<property name="
|
13
|
-
<property name="
|
14
|
-
<property name="
|
15
|
-
<property name="
|
16
|
-
<property name="
|
17
|
-
<property name="
|
18
|
-
<property name="folder.
|
19
|
-
<property name="folder.
|
20
|
-
<property name="folder.
|
21
|
-
<property name="folder.
|
22
|
-
<property name="folder.
|
23
|
-
<property name="folder.
|
24
|
-
<property name="folder.
|
25
|
-
<property name="folder.
|
26
|
-
<property name="
|
27
|
-
<property name="file.
|
28
|
-
<property name="file.custom.step.
|
29
|
-
<property name="file.custom.step.
|
30
|
-
<property name="
|
31
|
-
<property name="
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
<
|
38
|
-
<call target="
|
39
|
-
<call target="
|
40
|
-
<call target="
|
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
|
-
<exclude name="${folder.
|
93
|
-
<exclude name="${folder.
|
94
|
-
<exclude name="${folder.
|
95
|
-
<exclude name="${folder.
|
96
|
-
<exclude name="${folder.
|
97
|
-
<exclude name="${folder.
|
98
|
-
<exclude name="
|
99
|
-
<exclude name="*
|
100
|
-
<exclude name="
|
101
|
-
<exclude name="
|
102
|
-
<exclude name="*
|
103
|
-
<exclude name="*
|
104
|
-
<exclude name="*
|
105
|
-
<exclude name="*
|
106
|
-
<exclude name="*
|
107
|
-
<exclude name="*
|
108
|
-
<exclude name="
|
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
|
-
<exclude name="
|
176
|
-
<
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
<
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
<
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
<
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
<
|
226
|
-
<
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="PackageBuilder" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - Add custom tasks in BuildTasks.Custom folder with file by the same name - find out more at http://uppercut.pbwiki.com -->
|
5
|
+
<property name="build.config.settings" value="__NONE__" overwrite="false" />
|
6
|
+
<include buildfile="${build.config.settings}" if="${file::exists(build.config.settings)}" />
|
7
|
+
<property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" />
|
8
|
+
<property name="file.current.no_extension" value="package" />
|
9
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
10
|
+
<property name="path.to.toplevel" value=".." />
|
11
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
12
|
+
<property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
|
13
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.build_scripts_custom}" />
|
14
|
+
<property name="folder.code_build" value="build_output" overwrite="false" />
|
15
|
+
<property name="dirs.build" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.code_build}" />
|
16
|
+
<property name="folder.code_drop" value="code_drop" overwrite="false" />
|
17
|
+
<property name="dirs.drop" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.code_drop}" overwrite="false" />
|
18
|
+
<property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
|
19
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
20
|
+
<property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
|
21
|
+
<property name="folder.reports" value="${project.name}.Reports" overwrite="false" />
|
22
|
+
<property name="folder.file_server" value="file.server" overwrite="false" />
|
23
|
+
<property name="folder.environment_files" value="environment.files" overwrite="false" />
|
24
|
+
<property name="folder.deployment" value="deployment" overwrite="false" />
|
25
|
+
<property name="folder.settings" value="settings" overwrite="false" />
|
26
|
+
<property name="folder.documentation" value="docs" overwrite="false" />
|
27
|
+
<property name="file.build_info" value="${dirs.build}${path.separator}_BuildInfo.xml" />
|
28
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
29
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
30
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
31
|
+
<property name="is.replaced" value="false" />
|
32
|
+
<property name="fail.build.on.error" value="true" />
|
33
|
+
|
34
|
+
<target name="go" depends="run_tasks" />
|
35
|
+
|
36
|
+
<target name="run_tasks">
|
37
|
+
<echo message="Running ${project::get-name()} tasks." />
|
38
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
39
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
40
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
41
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
42
|
+
</target>
|
43
|
+
|
44
|
+
<target name="run_normal_tasks"
|
45
|
+
depends="prepare, build_artifacts, app, web, db, reports, file_server, environment_files, deployment_scripts, settings_files, build_deployment_files, build_info_file, documentation"
|
46
|
+
description="Packaging project." />
|
47
|
+
|
48
|
+
<target name="prepare">
|
49
|
+
<echo message="Removing and adding ${dirs.drop}."/>
|
50
|
+
<delete dir="${dirs.drop}" failonerror="false" />
|
51
|
+
<mkdir dir="${dirs.drop}" />
|
52
|
+
</target>
|
53
|
+
|
54
|
+
<target name="custom_tasks_before">
|
55
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
56
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
57
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
58
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
59
|
+
</exec>
|
60
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
61
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
62
|
+
</exec>
|
63
|
+
</target>
|
64
|
+
|
65
|
+
<target name="custom_tasks_replace">
|
66
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
67
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
68
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
69
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
70
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
71
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
72
|
+
</exec>
|
73
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
74
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
75
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
76
|
+
</exec>
|
77
|
+
</target>
|
78
|
+
|
79
|
+
<target name="build_artifacts">
|
80
|
+
<echo message="Packaging build artifacts (such as test results) to ${dirs.drop}${path.separator}${folder.build_artifacts}."/>
|
81
|
+
<copy todir="${dirs.drop}${path.separator}${folder.build_artifacts}">
|
82
|
+
<fileset basedir="${dirs.build}${path.separator}${folder.build_artifacts}">
|
83
|
+
<include name="**/*.*" />
|
84
|
+
</fileset>
|
85
|
+
</copy>
|
86
|
+
</target>
|
87
|
+
|
88
|
+
<target name="app">
|
89
|
+
<echo message="Packaging application items to ${dirs.drop}${path.separator}${folder.app.drop}."/>
|
90
|
+
<copy todir="${dirs.drop}${path.separator}${folder.app.drop}">
|
91
|
+
<fileset basedir="${dirs.build}${path.separator}${folder.app.drop}">
|
92
|
+
<exclude name="${folder.database}${path.separator}**" />
|
93
|
+
<exclude name="${folder.reports}${path.separator}**" />
|
94
|
+
<exclude name="${folder.deployment}${path.separator}**" />
|
95
|
+
<exclude name="${folder.documentation}${path.separator}**" />
|
96
|
+
<exclude name="${folder.environment_files}${path.separator}**" />
|
97
|
+
<exclude name="${folder.file_server}${path.separator}**" />
|
98
|
+
<exclude name="${folder.build_artifacts}${path.separator}**" />
|
99
|
+
<exclude name="*_Published*${path.separator}**" />
|
100
|
+
<exclude name="*Test*${path.separator}**" />
|
101
|
+
<exclude name="*.Specs*${path.separator}**" />
|
102
|
+
<exclude name="*bdddoc.*" />
|
103
|
+
<exclude name="*developwithpassion.bdd.*" />
|
104
|
+
<exclude name="*nunit.*" />
|
105
|
+
<exclude name="*QuickGraph*.*" />
|
106
|
+
<exclude name="*MbUnit*.*" />
|
107
|
+
<exclude name="*Rhino.Mocks.*" />
|
108
|
+
<exclude name="*Refly.*" />
|
109
|
+
<exclude name="**${path.separator}*.template" />
|
110
|
+
<include name="**/*.*" />
|
111
|
+
</fileset>
|
112
|
+
</copy>
|
113
|
+
</target>
|
114
|
+
|
115
|
+
<target name="web">
|
116
|
+
<echo message="Packaging website to ${dirs.drop}${path.separator}_PublishedWebSites."/>
|
117
|
+
<copy todir="${dirs.drop}${path.separator}_PublishedWebSites">
|
118
|
+
<fileset basedir="${dirs.build}${path.separator}${folder.app.drop}${path.separator}_PublishedWebSites">
|
119
|
+
<exclude name="**${path.separator}*.template" />
|
120
|
+
<include name="**/*.*" />
|
121
|
+
</fileset>
|
122
|
+
</copy>
|
123
|
+
</target>
|
124
|
+
|
125
|
+
<target name="db">
|
126
|
+
<echo message="Packaging database files to ${dirs.drop}${path.separator}${folder.database}."/>
|
127
|
+
<copy todir="${dirs.drop}${path.separator}${folder.database}">
|
128
|
+
<fileset basedir="${dirs.build}${path.separator}${folder.database}">
|
129
|
+
<exclude name="**${path.separator}*.template" />
|
130
|
+
<include name="**/*.*" />
|
131
|
+
</fileset>
|
132
|
+
</copy>
|
133
|
+
</target>
|
134
|
+
|
135
|
+
<target name="reports">
|
136
|
+
<echo message="Packaging reports to ${dirs.drop}${path.separator}${folder.reports}."/>
|
137
|
+
<copy todir="${dirs.drop}${path.separator}${folder.reports}">
|
138
|
+
<fileset basedir="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.reports}">
|
139
|
+
<exclude name="**${path.separator}*.template" />
|
140
|
+
<include name="**/*.*" />
|
141
|
+
</fileset>
|
142
|
+
</copy>
|
143
|
+
</target>
|
144
|
+
|
145
|
+
<target name="file_server">
|
146
|
+
<echo message="Packaging file server items to ${dirs.drop}${path.separator}${folder.file_server}."/>
|
147
|
+
<copy todir="${dirs.drop}${path.separator}${folder.file_server}">
|
148
|
+
<fileset basedir="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.file_server}">
|
149
|
+
<exclude name="**${path.separator}*.template" />
|
150
|
+
<include name="**/*.*" />
|
151
|
+
</fileset>
|
152
|
+
</copy>
|
153
|
+
|
154
|
+
<echo message="Packaging output fileserver items to ${dirs.drop}${path.separator}FileServer."/>
|
155
|
+
<copy todir="${dirs.drop}${path.separator}FileServer">
|
156
|
+
<fileset basedir="${dirs.build}${path.separator}${folder.app.drop}${path.separator}FileServer">
|
157
|
+
<include name="**/**" />
|
158
|
+
</fileset>
|
159
|
+
</copy>
|
160
|
+
</target>
|
161
|
+
|
162
|
+
<target name="environment_files">
|
163
|
+
<echo message="Packaging environment files to ${dirs.drop}${path.separator}${folder.environment_files}."/>
|
164
|
+
<copy todir="${dirs.drop}${path.separator}${folder.environment_files}">
|
165
|
+
<fileset basedir="${dirs.build}${path.separator}${folder.environment_files}">
|
166
|
+
<include name="**/*.*" />
|
167
|
+
</fileset>
|
168
|
+
</copy>
|
169
|
+
</target>
|
170
|
+
|
171
|
+
<target name="deployment_scripts">
|
172
|
+
<echo message="Packaging deployment scripts to ${dirs.drop}${path.separator}${folder.deployment}."/>
|
173
|
+
<copy todir="${dirs.drop}${path.separator}${folder.deployment}">
|
174
|
+
<fileset basedir="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.deployment}">
|
175
|
+
<exclude name="**${path.separator}*.template" />
|
176
|
+
<exclude name="templates${path.separator}**" />
|
177
|
+
<include name="**/*.*" />
|
178
|
+
</fileset>
|
179
|
+
</copy>
|
180
|
+
</target>
|
181
|
+
|
182
|
+
<target name="settings_files">
|
183
|
+
<echo message="Packaging settings files to ${dirs.drop}${path.separator}${folder.settings}."/>
|
184
|
+
<copy todir="${dirs.drop}${path.separator}${folder.settings}">
|
185
|
+
<fileset basedir="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.settings}">
|
186
|
+
<include name="**/*.settings" />
|
187
|
+
</fileset>
|
188
|
+
</copy>
|
189
|
+
</target>
|
190
|
+
|
191
|
+
<target name="build_deployment_files">
|
192
|
+
<echo message="Building Deployment Files."/>
|
193
|
+
<nant buildfile="deploymentBuilder.step" inheritall="true" failonerror="false" />
|
194
|
+
</target>
|
195
|
+
|
196
|
+
<target name="build_info_file">
|
197
|
+
<echo message="Copying ${file.build_info} to ${folder.build_artifacts}, ${folder.app.drop}, and ${folder.deployment} in the ${dirs.drop} folder."/>
|
198
|
+
|
199
|
+
<copy
|
200
|
+
file="${file.build_info}"
|
201
|
+
todir="${dirs.drop}${path.separator}${folder.build_artifacts}"
|
202
|
+
/>
|
203
|
+
|
204
|
+
<copy
|
205
|
+
file="${file.build_info}"
|
206
|
+
todir="${dirs.drop}${path.separator}${folder.app.drop}"
|
207
|
+
/>
|
208
|
+
|
209
|
+
<copy
|
210
|
+
file="${file.build_info}"
|
211
|
+
todir="${dirs.drop}${path.separator}${folder.deployment}"
|
212
|
+
/>
|
213
|
+
</target>
|
214
|
+
|
215
|
+
<target name="documentation">
|
216
|
+
<echo message="Packaging documentation files to ${dirs.drop}${path.separator}${folder.documentation}."/>
|
217
|
+
<copy todir="${dirs.drop}${path.separator}${folder.documentation}">
|
218
|
+
<fileset basedir="${dirs.build}${path.separator}${folder.documentation}">
|
219
|
+
<include name="**/*.*" />
|
220
|
+
</fileset>
|
221
|
+
</copy>
|
222
|
+
</target>
|
223
|
+
|
224
|
+
<target name="custom_tasks_after">
|
225
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
226
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
227
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
228
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
229
|
+
</exec>
|
230
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
231
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
232
|
+
</exec>
|
233
|
+
</target>
|
234
|
+
|
234
235
|
</project>
|