uppercutbuild 0.9.0.346.20100805 → 1.0.0.0.20100806
Sign up to get free protection for your applications and to get access to all the features.
- 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/gemsPrepare.step
CHANGED
@@ -1,157 +1,158 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
-
<project name="GemsPrepare" 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="folder.
|
27
|
-
<property name="
|
28
|
-
<property name="dirs.
|
29
|
-
<property name="
|
30
|
-
<property name="
|
31
|
-
<property name="version.
|
32
|
-
<property name="version.
|
33
|
-
<property name="version.
|
34
|
-
<property name="
|
35
|
-
<property name="
|
36
|
-
<property name="
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
<property name="file.custom.step.
|
42
|
-
<property name="
|
43
|
-
<property name="
|
44
|
-
|
45
|
-
<
|
46
|
-
|
47
|
-
<target name="run_tasks" if="${folder.gems.exists}"
|
48
|
-
|
49
|
-
|
50
|
-
<
|
51
|
-
<call target="
|
52
|
-
<call target="
|
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
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace
|
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
|
-
<property name="gem.current.date
|
133
|
-
<property name="gem.current.date.
|
134
|
-
<property name="gem.current.date.month" value="${
|
135
|
-
<property name="gem.current.date.
|
136
|
-
<property name="gem.current.date.
|
137
|
-
<property name="gem.
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
<
|
149
|
-
<
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="GemsPrepare" 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="gemsPrepare" />
|
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="folder.gems" value="gems" overwrite="false" />
|
28
|
+
<property name="dirs.gems" value="${path.to.toplevel}${path.separator}${folder.gems}" overwrite="false" />
|
29
|
+
<property name="dirs.drop.gems" value="${dirs.drop}${path.separator}${folder.gems}" overwrite="false" />
|
30
|
+
<property name="folder.gems.exists" value="${directory::exists(dirs.gems)}" />
|
31
|
+
<property name="version.major" value="1" overwrite="false" />
|
32
|
+
<property name="version.minor" value="0" overwrite="false" />
|
33
|
+
<property name="version.patch" value="0" overwrite="false" />
|
34
|
+
<property name="version.build" value="0" overwrite="false" />
|
35
|
+
<property name="version.revision" value="0" overwrite="false" />
|
36
|
+
<property name="assembly.version.full" value="${version.major}.${version.minor}.${version.patch}.0" />
|
37
|
+
<property name="gem.build.date" value="20100801" overwrite="false" />
|
38
|
+
<property name="file.gems.version" value="${dirs.drop.gems}${path.separator}VERSION" />
|
39
|
+
|
40
|
+
|
41
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
42
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
43
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
44
|
+
<property name="is.replaced" value="false" />
|
45
|
+
<property name="fail.build.on.error" value="true" />
|
46
|
+
|
47
|
+
<target name="go" depends="run_tasks" if="${folder.gems.exists}" />
|
48
|
+
|
49
|
+
<target name="run_tasks" if="${folder.gems.exists}">
|
50
|
+
<echo message="Running ${project::get-name()} tasks." />
|
51
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
52
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
53
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
54
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
55
|
+
</target>
|
56
|
+
|
57
|
+
<target name="run_normal_tasks"
|
58
|
+
depends="prepare, copy_gems_folder, copy_app_drop_to_lib_folder, copy_docs_to_doc_folder, copy_notices_to_doc_folder, update_gem_build_date, generate_version_file"
|
59
|
+
description="Packaging gems." />
|
60
|
+
|
61
|
+
<target name="prepare">
|
62
|
+
<echo message="Removing and adding ${dirs.drop.gems}."/>
|
63
|
+
<delete dir="${dirs.drop.gems}" failonerror="false" />
|
64
|
+
<mkdir dir="${dirs.drop.gems}" />
|
65
|
+
</target>
|
66
|
+
|
67
|
+
<target name="custom_tasks_before">
|
68
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
69
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
70
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
71
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
72
|
+
</exec>
|
73
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
74
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
75
|
+
</exec>
|
76
|
+
</target>
|
77
|
+
|
78
|
+
<target name="custom_tasks_replace">
|
79
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
80
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
81
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
82
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
83
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
84
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
85
|
+
</exec>
|
86
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
87
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
88
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
89
|
+
</exec>
|
90
|
+
</target>
|
91
|
+
|
92
|
+
<target name="copy_gems_folder">
|
93
|
+
<echo message="Packaging gem specifications and special files from ${dirs.gems} to ${dirs.drop.gems}."/>
|
94
|
+
<copy todir="${dirs.drop.gems}">
|
95
|
+
<fileset basedir="${dirs.gems}">
|
96
|
+
<include name="**/**" />
|
97
|
+
</fileset>
|
98
|
+
</copy>
|
99
|
+
</target>
|
100
|
+
|
101
|
+
<target name="copy_app_drop_to_lib_folder">
|
102
|
+
<echo message="Packaging application gem pieces into ${dirs.drop.gems}${path.separator}lib from ${dirs.drop}${path.separator}${folder.app.drop}."/>
|
103
|
+
<copy todir="${dirs.drop.gems}${path.separator}lib">
|
104
|
+
<fileset basedir="${dirs.drop}${path.separator}${folder.app.drop}">
|
105
|
+
<include name="**/**" />
|
106
|
+
</fileset>
|
107
|
+
</copy>
|
108
|
+
</target>
|
109
|
+
|
110
|
+
<target name="copy_docs_to_doc_folder">
|
111
|
+
<echo message="Packaging docs to ${dirs.drop.gems}${path.separator}docs."/>
|
112
|
+
<copy todir="${dirs.drop.gems}${path.separator}docs" failonerror="false">
|
113
|
+
<fileset basedir="${dirs.drop}${path.separator}${folder.documentation}">
|
114
|
+
<include name="**/**" />
|
115
|
+
</fileset>
|
116
|
+
</copy>
|
117
|
+
</target>
|
118
|
+
|
119
|
+
<target name="copy_notices_to_doc_folder">
|
120
|
+
<echo message="Packaging readme file to ${dirs.drop.gems}${path.separator}docs."/>
|
121
|
+
<copy file="${dirs.current}${path.separator}..${path.separator}README.markdown" tofile="${dirs.drop.gems}${path.separator}docs${path.separator}README" failonerror="false" />
|
122
|
+
|
123
|
+
<echo message="Packaging other legal stuff to ${dirs.drop.gems}${path.separator}docs."/>
|
124
|
+
<copy todir="${dirs.drop.gems}${path.separator}docs" failonerror="false">
|
125
|
+
<fileset basedir="${dirs.drop}${path.separator}LEGAL">
|
126
|
+
<include name="**/*" />
|
127
|
+
</fileset>
|
128
|
+
</copy>
|
129
|
+
</target>
|
130
|
+
|
131
|
+
<target name="update_gem_build_date">
|
132
|
+
<property name="gem.current.date" value="${datetime::now()}" />
|
133
|
+
<property name="gem.current.date.year" value="${datetime::get-year(gem.current.date)}" />
|
134
|
+
<property name="gem.current.date.month" value="${datetime::get-month(gem.current.date)}" />
|
135
|
+
<property name="gem.current.date.month" value="${'0' + gem.current.date.month}" if="${string::get-length(gem.current.date.month) == 1}" />
|
136
|
+
<property name="gem.current.date.month" value="${'0' + gem.current.date.month}" if="${string::get-length(gem.current.date.month) == 1}" />
|
137
|
+
<property name="gem.current.date.day" value="${datetime::get-day(gem.current.date)}" />
|
138
|
+
<property name="gem.current.date.day" value="${'0' + gem.current.date.day}" if="${string::get-length(gem.current.date.day) == 1}" />
|
139
|
+
<property name="gem.build.date" value="${'' + gem.current.date.year + gem.current.date.month + gem.current.date.day}" />
|
140
|
+
</target>
|
141
|
+
|
142
|
+
<target name="generate_version_file">
|
143
|
+
<echo message="Generating ${file.gems.version} with ${assembly.version.full} and ${gem.build.date} for the version" />
|
144
|
+
<echo file="${file.gems.version}" append="false" failonerror="false">${assembly.version.full}.${gem.build.date}</echo>
|
145
|
+
</target>
|
146
|
+
|
147
|
+
<target name="custom_tasks_after">
|
148
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
149
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
150
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
151
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
152
|
+
</exec>
|
153
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
154
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
155
|
+
</exec>
|
156
|
+
</target>
|
157
|
+
|
157
158
|
</project>
|
@@ -1,106 +1,109 @@
|
|
1
|
-
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
-
<project name="BuildInformation" default="go">
|
3
|
-
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
-
<!-- DO NOT EDIT THIS FILE - This creates the assembly file to be used by the rest of the application - 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="
|
19
|
-
<property name="version.
|
20
|
-
<property name="version.
|
21
|
-
<property name="version.
|
22
|
-
<property name="version.
|
23
|
-
<property name="
|
24
|
-
<property name="
|
25
|
-
<property name="
|
26
|
-
<property name="
|
27
|
-
<property name="
|
28
|
-
<property name="
|
29
|
-
<property name="
|
30
|
-
<property name="file.custom.step.
|
31
|
-
<property name="
|
32
|
-
<property name="
|
33
|
-
|
34
|
-
<
|
35
|
-
|
36
|
-
<target name="run_tasks"
|
37
|
-
|
38
|
-
|
39
|
-
<
|
40
|
-
<call target="
|
41
|
-
<call target="
|
42
|
-
<call target="
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
<
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
<
|
64
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace
|
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
|
-
<exec program="
|
102
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.
|
103
|
-
</exec>
|
104
|
-
|
105
|
-
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="BuildInformation" default="go">
|
3
|
+
<!-- Project UppercuT - http://projectuppercut.org -->
|
4
|
+
<!-- DO NOT EDIT THIS FILE - This creates the assembly file to be used by the rest of the application - 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="generateBuildInfo" />
|
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="file.build_info" value="${dirs.build}${path.separator}_BuildInfo.xml" />
|
17
|
+
<property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
|
18
|
+
<property name="company.name" value="__COMPANY_NAME__" overwrite="false" />
|
19
|
+
<property name="version.major" value="1" overwrite="false" />
|
20
|
+
<property name="version.minor" value="0" overwrite="false" />
|
21
|
+
<property name="version.patch" value="0" overwrite="false" />
|
22
|
+
<property name="version.build" value="0" overwrite="false" />
|
23
|
+
<property name="version.revision" value="0" overwrite="false" />
|
24
|
+
<property name="version.full" value="${version.major}.${version.minor}.${version.patch}.0" />
|
25
|
+
<property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
|
26
|
+
<property name="microsoft.framework" value="net-3.5" overwrite="false" />
|
27
|
+
<property name="msbuild.configuration" value="Release" overwrite="false" />
|
28
|
+
<property name="msbuild.platform" value="Any CPU" overwrite="false" />
|
29
|
+
<property name="version.uppercut" value="0" overwrite="false" />
|
30
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
31
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
32
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
33
|
+
<property name="is.replaced" value="false" />
|
34
|
+
<property name="fail.build.on.error" value="false" />
|
35
|
+
|
36
|
+
<target name="go" depends="run_tasks" />
|
37
|
+
|
38
|
+
<target name="run_tasks">
|
39
|
+
<echo message="Running ${project::get-name()} tasks." />
|
40
|
+
<call target="prepare" if="${target::exists('prepare')}" />
|
41
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
42
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
43
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
44
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
45
|
+
</target>
|
46
|
+
|
47
|
+
<target name="run_normal_tasks"
|
48
|
+
depends="generate_build_info_file"
|
49
|
+
description="Generating Build Information File." />
|
50
|
+
|
51
|
+
<target name="custom_tasks_before">
|
52
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
53
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
54
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
55
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
56
|
+
</exec>
|
57
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
58
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
59
|
+
</exec>
|
60
|
+
</target>
|
61
|
+
|
62
|
+
<target name="custom_tasks_replace">
|
63
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
64
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
65
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
66
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
67
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
68
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
69
|
+
</exec>
|
70
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
71
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
72
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
73
|
+
</exec>
|
74
|
+
</target>
|
75
|
+
|
76
|
+
<target name="generate_build_info_file">
|
77
|
+
<echo message="Generating XML file with some information to possibly get merged in at ${file.build_info}."/>
|
78
|
+
<echo file="${file.build_info}" append="false" failonerror="false">
|
79
|
+
<![CDATA[<?xml version="1.0" ?>
|
80
|
+
<buildInfo>
|
81
|
+
<projectName>${project.name}</projectName>
|
82
|
+
<companyName>${string::replace(string::replace(company.name,'&','&'),'&','&')}</companyName>
|
83
|
+
<versionMajor>${version.major}</versionMajor>
|
84
|
+
<versionMinor>${version.minor}</versionMinor>
|
85
|
+
<versionPatch>${version.patch}</versionPatch>
|
86
|
+
<buildNumber>${version.build}</buildNumber>
|
87
|
+
<revision>${version.revision}</revision>
|
88
|
+
<version>${version.full}</version>
|
89
|
+
<repositoryPath>${repository.path}</repositoryPath>
|
90
|
+
<microsoftNetFramework>${microsoft.framework}</microsoftNetFramework>
|
91
|
+
<msbuildConfiguration>${msbuild.configuration}</msbuildConfiguration>
|
92
|
+
<msbuildPlatform>${msbuild.platform}</msbuildPlatform>
|
93
|
+
<builtWith>UppercuT v. ${version.uppercut}</builtWith>
|
94
|
+
</buildInfo>]]>
|
95
|
+
</echo>
|
96
|
+
</target>
|
97
|
+
|
98
|
+
<target name="custom_tasks_after">
|
99
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
100
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
101
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
102
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
103
|
+
</exec>
|
104
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
105
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
106
|
+
</exec>
|
107
|
+
</target>
|
108
|
+
|
106
109
|
</project>
|