uppercutbuild 1.3.0.0 → 1.4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/README +20 -2
- data/docs/Samples/CC.NET/server/ccnet.config +8 -2
- data/lib/build.bat +1 -3
- data/lib/build/Castle.Core.dll +0 -0
- data/lib/build/Castle.DynamicProxy2.dll +0 -0
- data/lib/build/Castle.MicroKernel.dll +0 -0
- data/lib/build/Castle.Windsor.dll +0 -0
- data/lib/build/UppercuT.xml +1 -2
- data/lib/build/analyze.step +9 -44
- data/lib/build/analyzers/gallio.test.step +13 -49
- data/lib/build/analyzers/mbunit2.test.step +12 -48
- data/lib/build/analyzers/metrics.step +106 -0
- data/lib/build/analyzers/moma.step +13 -49
- data/lib/build/analyzers/ncover.step +14 -50
- data/lib/build/analyzers/ndepend.step +12 -47
- data/lib/build/analyzers/nitriq.step +13 -49
- data/lib/build/analyzers/nunit.test.step +18 -54
- data/lib/build/analyzers/storevil.test.step +17 -53
- data/lib/build/analyzers/test.step +16 -44
- data/lib/build/analyzers/xunit.test.step +13 -49
- data/lib/build/compile.step +94 -63
- data/lib/build/customize.build +8 -5
- data/lib/build/customizers/item.template +2 -1
- data/lib/build/default.build +27 -64
- data/lib/build/deploymentBuilder.step +60 -60
- data/lib/build/environmentBuilder.step +43 -61
- data/lib/build/gemsBuild.step +8 -44
- data/lib/build/gemsPrepare.step +17 -54
- data/lib/build/generateBuildInfo.step +9 -45
- data/lib/build/ilmerge.build +14 -60
- data/lib/build/nugetBuild.step +12 -45
- data/lib/build/nugetPrepare.step +28 -55
- data/lib/build/obfuscate.step +12 -45
- data/lib/build/open.build +28 -58
- data/lib/build/package.step +41 -63
- data/lib/build/policyChecks.step +8 -44
- data/lib/build/uc.exe +0 -0
- data/lib/build/uc.exe.config +3 -0
- data/lib/build/updateAssemblies.build +11 -57
- data/lib/build/uppercut.dll +0 -0
- data/lib/build/uppercut.tasks.dll +0 -0
- data/lib/build/versionBuilder.step +12 -44
- data/lib/build/versioners/git.step +8 -45
- data/lib/build/versioners/hg.step +8 -45
- data/lib/build/versioners/svn.step +8 -45
- data/lib/build/versioners/tfs.step +7 -43
- data/lib/build/zip.build +17 -63
- data/lib/lib/NAnt/NAnt.CompressionTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Contrib.Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Core.dll +0 -0
- data/lib/lib/NAnt/NAnt.DotNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.MSNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit1Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.NUnit2Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.SourceControlTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.VSNetTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.VisualCppTasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.Win32Tasks.dll +0 -0
- data/lib/lib/NAnt/NAnt.exe +0 -0
- data/lib/lib/NAnt/NAnt.exe.config +333 -136
- data/lib/lib/NAnt/NDoc.Documenter.NAnt.dll +0 -0
- data/lib/lib/NAnt/SLiNgshoT.Core.dll +0 -0
- data/lib/lib/NAnt/SLiNgshoT.exe +0 -0
- data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.dll +0 -0
- data/lib/lib/NuGet/NuGet.exe +0 -0
- data/lib/open.bat +1 -1
- data/lib/settings/LOCAL.settings +3 -1
- data/lib/settings/UppercuT.config +10 -7
- data/lib/test.bat +2 -2
- data/lib/zip.bat +2 -2
- metadata +42 -89
- data/lib/lib/NAnt/MSITaskErrors.mst +0 -0
- data/lib/lib/NAnt/MSITaskTemplate.msi +0 -0
- data/lib/lib/NAnt/MSMTaskErrors.mst +0 -0
- data/lib/lib/NAnt/MSMTaskTemplate.msm +0 -0
- data/lib/lib/NAnt/NDepend.Build.NAntTasks.dll +0 -0
- data/lib/lib/NAnt/extensions/common/2.0/NAnt.MSBuild.xml +0 -36
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/mono/1.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/mono/2.0/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/1.1/nunit.util.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.Core.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.Documenter.Msdn.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/NDoc.ExtendedUI.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.core.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.framework.dll +0 -0
- data/lib/lib/NAnt/lib/net/2.0/nunit.util.dll +0 -0
data/lib/build/gemsBuild.step
CHANGED
@@ -34,53 +34,28 @@
|
|
34
34
|
<property name="version.revision" value="0" overwrite="false" />
|
35
35
|
<property name="assembly.version.full" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
|
36
36
|
|
37
|
-
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
38
|
-
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
39
|
-
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
40
37
|
<property name="is.replaced" value="false" />
|
41
38
|
<property name="fail.build.on.error" value="false" />
|
42
39
|
|
43
40
|
<target name="go" depends="run_tasks" if="${folder.gems.exists}" />
|
44
41
|
|
45
42
|
<target name="run_tasks" if="${folder.gems.exists}">
|
46
|
-
<echo
|
47
|
-
<
|
48
|
-
<
|
43
|
+
<echo level="Warning" message="" />
|
44
|
+
<echo level="Warning" message="====================" />
|
45
|
+
<echo level="Warning" message="${project::get-name()}" />
|
46
|
+
<echo level="Warning" message="====================" />
|
47
|
+
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
|
48
|
+
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
|
49
49
|
<call target="run_normal_tasks" if="${not is.replaced}" />
|
50
|
-
<
|
50
|
+
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
|
51
51
|
</target>
|
52
52
|
|
53
53
|
<target name="run_normal_tasks"
|
54
54
|
depends="build_gem, remove_gem_files"
|
55
55
|
description="Building gems." />
|
56
56
|
|
57
|
-
<target name="custom_tasks_before">
|
58
|
-
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
59
|
-
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
60
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
61
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
62
|
-
</exec>
|
63
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
64
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
65
|
-
</exec>
|
66
|
-
</target>
|
67
|
-
|
68
|
-
<target name="custom_tasks_replace">
|
69
|
-
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
70
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
71
|
-
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
72
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
73
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
74
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
75
|
-
</exec>
|
76
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
77
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
78
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
79
|
-
</exec>
|
80
|
-
</target>
|
81
|
-
|
82
57
|
<target name="build_gem">
|
83
|
-
<echo message="Finding and building all gems in ${dirs.drop.gems}."/>
|
58
|
+
<echo level="Warning" message="Finding and building all gems in ${dirs.drop.gems}."/>
|
84
59
|
<foreach item="File" property="spec.file">
|
85
60
|
<in>
|
86
61
|
<items>
|
@@ -107,15 +82,4 @@
|
|
107
82
|
</delete>
|
108
83
|
</target>
|
109
84
|
|
110
|
-
<target name="custom_tasks_after">
|
111
|
-
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
112
|
-
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
113
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
114
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
115
|
-
</exec>
|
116
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
117
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
118
|
-
</exec>
|
119
|
-
</target>
|
120
|
-
|
121
85
|
</project>
|
data/lib/build/gemsPrepare.step
CHANGED
@@ -41,21 +41,20 @@
|
|
41
41
|
<property name="gem.build.date" value="20100801" overwrite="false" />
|
42
42
|
<property name="file.gems.version" value="${dirs.drop.gems}${path.separator}VERSION" />
|
43
43
|
|
44
|
-
|
45
|
-
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
46
|
-
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
47
|
-
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
48
44
|
<property name="is.replaced" value="false" />
|
49
45
|
<property name="fail.build.on.error" value="false" />
|
50
46
|
|
51
47
|
<target name="go" depends="run_tasks" if="${folder.gems.exists}" />
|
52
48
|
|
53
49
|
<target name="run_tasks" if="${folder.gems.exists}">
|
54
|
-
<echo
|
55
|
-
<
|
56
|
-
<
|
50
|
+
<echo level="Warning" message="" />
|
51
|
+
<echo level="Warning" message="====================" />
|
52
|
+
<echo level="Warning" message="${project::get-name()}" />
|
53
|
+
<echo level="Warning" message="====================" />
|
54
|
+
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
|
55
|
+
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
|
57
56
|
<call target="run_normal_tasks" if="${not is.replaced}" />
|
58
|
-
<
|
57
|
+
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
|
59
58
|
</target>
|
60
59
|
|
61
60
|
<target name="run_normal_tasks"
|
@@ -63,38 +62,13 @@
|
|
63
62
|
description="Packaging gems." />
|
64
63
|
|
65
64
|
<target name="prepare">
|
66
|
-
<echo message="Removing and adding ${dirs.drop.gems}."/>
|
65
|
+
<echo level="Warning" message="Removing and adding ${dirs.drop.gems}."/>
|
67
66
|
<delete dir="${dirs.drop.gems}" failonerror="false" />
|
68
67
|
<mkdir dir="${dirs.drop.gems}" />
|
69
68
|
</target>
|
70
69
|
|
71
|
-
<target name="custom_tasks_before">
|
72
|
-
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
73
|
-
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
74
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
75
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
76
|
-
</exec>
|
77
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
78
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
79
|
-
</exec>
|
80
|
-
</target>
|
81
|
-
|
82
|
-
<target name="custom_tasks_replace">
|
83
|
-
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
84
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
85
|
-
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
86
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
87
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
88
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
89
|
-
</exec>
|
90
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
91
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
92
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
93
|
-
</exec>
|
94
|
-
</target>
|
95
|
-
|
96
70
|
<target name="copy_gems_folder">
|
97
|
-
<echo message="Packaging gem specifications and special files from ${dirs.gems} to ${dirs.drop.gems}."/>
|
71
|
+
<echo level="Warning" message="Packaging gem specifications and special files from ${dirs.gems} to ${dirs.drop.gems}."/>
|
98
72
|
<copy todir="${dirs.drop.gems}">
|
99
73
|
<fileset basedir="${dirs.gems}">
|
100
74
|
<include name="**/**" />
|
@@ -103,7 +77,7 @@
|
|
103
77
|
</target>
|
104
78
|
|
105
79
|
<target name="copy_app_drop_to_lib_folder">
|
106
|
-
<echo message="Packaging application gem pieces into ${dirs.drop.gems}${path.separator}lib from ${dirs.drop}${path.separator}${folder.app.drop}."/>
|
80
|
+
<echo level="Warning" message="Packaging application gem pieces into ${dirs.drop.gems}${path.separator}lib from ${dirs.drop}${path.separator}${folder.app.drop}."/>
|
107
81
|
<copy todir="${dirs.drop.gems}${path.separator}lib">
|
108
82
|
<fileset basedir="${dirs.drop}${path.separator}${folder.app.drop}">
|
109
83
|
<include name="**/**" />
|
@@ -112,7 +86,7 @@
|
|
112
86
|
</target>
|
113
87
|
|
114
88
|
<target name="copy_docs_to_doc_folder">
|
115
|
-
<echo message="Packaging docs to ${dirs.drop.gems}${path.separator}docs."/>
|
89
|
+
<echo level="Warning" message="Packaging docs to ${dirs.drop.gems}${path.separator}docs."/>
|
116
90
|
<copy todir="${dirs.drop.gems}${path.separator}docs" failonerror="false">
|
117
91
|
<fileset basedir="${dirs.drop}${path.separator}${folder.documentation}">
|
118
92
|
<include name="**/**" />
|
@@ -121,10 +95,10 @@
|
|
121
95
|
</target>
|
122
96
|
|
123
97
|
<target name="copy_notices_to_doc_folder">
|
124
|
-
<echo message="Packaging readme file to ${dirs.drop.gems}${path.separator}docs."/>
|
98
|
+
<echo level="Warning" message="Packaging readme file to ${dirs.drop.gems}${path.separator}docs."/>
|
125
99
|
<copy file="${dirs.current}${path.separator}..${path.separator}README.markdown" tofile="${dirs.drop.gems}${path.separator}docs${path.separator}README" failonerror="false" />
|
126
100
|
|
127
|
-
<echo message="Packaging other legal stuff to ${dirs.drop.gems}${path.separator}docs."/>
|
101
|
+
<echo level="Warning" message="Packaging other legal stuff to ${dirs.drop.gems}${path.separator}docs."/>
|
128
102
|
<copy todir="${dirs.drop.gems}${path.separator}docs" failonerror="false">
|
129
103
|
<fileset basedir="${dirs.drop}${path.separator}LEGAL">
|
130
104
|
<include name="**/*" />
|
@@ -144,21 +118,10 @@
|
|
144
118
|
</target>
|
145
119
|
|
146
120
|
<target name="generate_version_file">
|
147
|
-
<echo message="Generating ${file.gems.version} with ${assembly.version.full}${version.gem.suffix} for the version" if="${not use.gem.build_date}" />
|
148
|
-
<echo file="${file.gems.version}" if="${not use.gem.build_date}" append="false" failonerror="false">${assembly.version.full}${version.gem.suffix}</echo>
|
149
|
-
<echo message="Generating ${file.gems.version} with ${assembly.version.full}.${gem.build.date}${version.gem.suffix} for the version" if="${use.gem.build_date}" />
|
150
|
-
<echo file="${file.gems.version}" if="${use.gem.build_date}" append="false" failonerror="false">${assembly.version.full}.${gem.build.date}${version.gem.suffix}</echo>
|
121
|
+
<echo level="Warning" message="Generating ${file.gems.version} with ${assembly.version.full}${version.gem.suffix} for the version" if="${not use.gem.build_date}" />
|
122
|
+
<echo level="Warning" file="${file.gems.version}" if="${not use.gem.build_date}" append="false" failonerror="false">${assembly.version.full}${version.gem.suffix}</echo>
|
123
|
+
<echo level="Warning" message="Generating ${file.gems.version} with ${assembly.version.full}.${gem.build.date}${version.gem.suffix} for the version" if="${use.gem.build_date}" />
|
124
|
+
<echo level="Warning" file="${file.gems.version}" if="${use.gem.build_date}" append="false" failonerror="false">${assembly.version.full}.${gem.build.date}${version.gem.suffix}</echo>
|
151
125
|
</target>
|
152
126
|
|
153
|
-
<target name="custom_tasks_after">
|
154
|
-
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
155
|
-
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
156
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
157
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
158
|
-
</exec>
|
159
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
160
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
161
|
-
</exec>
|
162
|
-
</target>
|
163
|
-
|
164
127
|
</project>
|
@@ -29,55 +29,30 @@
|
|
29
29
|
<property name="msbuild.configuration" value="Release" overwrite="false" />
|
30
30
|
<property name="msbuild.platform" value="Any CPU" overwrite="false" />
|
31
31
|
<property name="version.uppercut" value="0" overwrite="false" />
|
32
|
-
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
33
|
-
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
34
|
-
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
35
32
|
<property name="is.replaced" value="false" />
|
36
33
|
<property name="fail.build.on.error" value="false" />
|
37
34
|
|
38
35
|
<target name="go" depends="run_tasks" />
|
39
36
|
|
40
37
|
<target name="run_tasks">
|
41
|
-
<echo
|
38
|
+
<echo level="Warning" message="" />
|
39
|
+
<echo level="Warning" message="====================" />
|
40
|
+
<echo level="Warning" message="${project::get-name()}" />
|
41
|
+
<echo level="Warning" message="====================" />
|
42
42
|
<call target="prepare" if="${target::exists('prepare')}" />
|
43
|
-
<
|
44
|
-
<
|
43
|
+
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
|
44
|
+
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
|
45
45
|
<call target="run_normal_tasks" if="${not is.replaced}" />
|
46
|
-
<
|
46
|
+
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
|
47
47
|
</target>
|
48
48
|
|
49
49
|
<target name="run_normal_tasks"
|
50
50
|
depends="generate_build_info_file"
|
51
51
|
description="Generating Build Information File." />
|
52
52
|
|
53
|
-
<target name="custom_tasks_before">
|
54
|
-
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
55
|
-
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
56
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
57
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
58
|
-
</exec>
|
59
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
60
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
61
|
-
</exec>
|
62
|
-
</target>
|
63
|
-
|
64
|
-
<target name="custom_tasks_replace">
|
65
|
-
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
66
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
67
|
-
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
68
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
69
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
70
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
71
|
-
</exec>
|
72
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
73
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
74
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
75
|
-
</exec>
|
76
|
-
</target>
|
77
|
-
|
78
53
|
<target name="generate_build_info_file">
|
79
|
-
<echo message="Generating XML file with some information to possibly get merged in at ${file.build_info}."/>
|
80
|
-
<echo file="${file.build_info}" append="false" failonerror="false">
|
54
|
+
<echo level="Warning" message="Generating XML file with some information to possibly get merged in at ${file.build_info}."/>
|
55
|
+
<echo level="Warning" file="${file.build_info}" append="false" failonerror="false">
|
81
56
|
<![CDATA[<?xml version="1.0" ?>
|
82
57
|
<buildInfo>
|
83
58
|
<projectName>${project.name}</projectName>
|
@@ -97,15 +72,4 @@
|
|
97
72
|
</echo>
|
98
73
|
</target>
|
99
74
|
|
100
|
-
<target name="custom_tasks_after">
|
101
|
-
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
102
|
-
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
103
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
104
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
105
|
-
</exec>
|
106
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
107
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
108
|
-
</exec>
|
109
|
-
</target>
|
110
|
-
|
111
75
|
</project>
|
data/lib/build/ilmerge.build
CHANGED
@@ -20,6 +20,8 @@
|
|
20
20
|
<property name="log.merge" value="ilmerge.log" />
|
21
21
|
<property name="file.uppercut.assembly" value="uppercut.tasks.dll" />
|
22
22
|
<property name="path.uppercut.assembly" value="${dirs.current}${path.separator}${file.uppercut.assembly}" />
|
23
|
+
<property name="app.ruby" value="C:\Ruby\bin\ruby.exe" overwrite="false" />
|
24
|
+
<property name="app.powershell" value="%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe" overwrite="false" />
|
23
25
|
|
24
26
|
<property name="dirs.merge.from" value="${dirs.drop}${path.separator}${folder.app.drop}" overwrite="false" />
|
25
27
|
<property name="dirs.merge.to" value="${dirs.drop}${path.separator}merge" overwrite="false" />
|
@@ -32,53 +34,27 @@
|
|
32
34
|
<property name="args.ilmerge" value="/internalize /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /xmldocs /ndebug /allowDup ${file.merge.name} " />
|
33
35
|
<property name="args.ilmerge" value="/internalize:${path.file.internalize.ignore} /target:${merge.target.type} /out:${dirs.merge.to}${path.separator}${file.merge.name} /log:${dirs.merge.log}${path.separator}${log.merge} /xmldocs /ndebug /allowDup ${file.merge.name} " if="${file::exists(path.file.internalize.ignore)}"/>
|
34
36
|
|
35
|
-
<property name="allow.powershell.unrestricted" value="false" overwrite="false" />
|
36
|
-
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.build" />
|
37
|
-
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.build" />
|
38
|
-
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.build" />
|
39
37
|
<property name="is.replaced" value="false" />
|
40
38
|
<property name="fail.build.on.error" value="true" />
|
41
39
|
|
42
|
-
<target name="go" depends="load_uppercut_assemblies,
|
40
|
+
<target name="go" depends="load_uppercut_assemblies, run_tasks" />
|
43
41
|
|
44
42
|
<target name="run_tasks">
|
45
|
-
<echo
|
43
|
+
<echo level="Warning" message="" />
|
44
|
+
<echo level="Warning" message="====================" />
|
45
|
+
<echo level="Warning" message="${project::get-name()}" />
|
46
|
+
<echo level="Warning" message="====================" />
|
46
47
|
<call target="prepare" if="${target::exists('prepare')}" />
|
47
|
-
<
|
48
|
-
<
|
48
|
+
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
|
49
|
+
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
|
49
50
|
<call target="run_normal_tasks" if="${not is.replaced}" />
|
50
|
-
<
|
51
|
+
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
|
51
52
|
</target>
|
52
53
|
|
53
54
|
<target name="run_normal_tasks"
|
54
55
|
depends="set_environment_variables, error_check, get_regular_dlls, run_ilmerge, copy_configs, remove_unneeded_assemblies, copy_from_merge, delete_merge_folder"
|
55
56
|
description="Running ILMerge with UppercuT default.build." />
|
56
57
|
|
57
|
-
<target name="custom_tasks_before">
|
58
|
-
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
59
|
-
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
60
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
61
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
62
|
-
</exec>
|
63
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
64
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
65
|
-
</exec>
|
66
|
-
</target>
|
67
|
-
|
68
|
-
<target name="custom_tasks_replace">
|
69
|
-
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
70
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
71
|
-
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
72
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
73
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
74
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
75
|
-
</exec>
|
76
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
77
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
78
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
79
|
-
</exec>
|
80
|
-
</target>
|
81
|
-
|
82
58
|
<target name="set_environment_variables">
|
83
59
|
<property name="dirs.merge.from" value="${environment::get-variable('uc.dirs.merge.from')}" if="${environment::variable-exists('uc.dirs.merge.from')}" />
|
84
60
|
<property name="dirs.merge.to" value="${environment::get-variable('uc.dirs.merge.to')}" if="${environment::variable-exists('uc.dirs.merge.to')}" />
|
@@ -99,7 +75,7 @@
|
|
99
75
|
</target>
|
100
76
|
|
101
77
|
<target name="get_regular_dlls">
|
102
|
-
<echo message="Getting output dlls based on name in directory ${path::get-full-path(dirs.merge.from)}." />
|
78
|
+
<echo level="Warning" message="Getting output dlls based on name in directory ${path::get-full-path(dirs.merge.from)}." />
|
103
79
|
<property name="dll.names" value="" />
|
104
80
|
<foreach item="File" property="dll.filename">
|
105
81
|
<in>
|
@@ -119,8 +95,8 @@
|
|
119
95
|
</target>
|
120
96
|
|
121
97
|
<target name="run_ilmerge">
|
122
|
-
<echo message="Merging the the contents of ${dirs.merge.from} into a single executable - ${dirs.merge.to}${path.separator}${file.merge.name}. This will fail if all dependencies are not resolved."/>
|
123
|
-
<echo message="Running this: ${app.ilmerge} ${args.ilmerge}"/>
|
98
|
+
<echo level="Warning" message="Merging the the contents of ${dirs.merge.from} into a single executable - ${dirs.merge.to}${path.separator}${file.merge.name}. This will fail if all dependencies are not resolved."/>
|
99
|
+
<echo level="Warning" message="Running this: ${app.ilmerge} ${args.ilmerge}"/>
|
124
100
|
<exec program="${app.ilmerge}"
|
125
101
|
workingdir="${dirs.merge.from}"
|
126
102
|
commandline="${args.ilmerge}" />
|
@@ -135,7 +111,7 @@
|
|
135
111
|
</target>
|
136
112
|
|
137
113
|
<target name="remove_unneeded_assemblies">
|
138
|
-
<echo message="Removing unneeded assemblies before moving the merged assembly back into ${dirs.merge.from}."/>
|
114
|
+
<echo level="Warning" message="Removing unneeded assemblies before moving the merged assembly back into ${dirs.merge.from}."/>
|
139
115
|
<delete>
|
140
116
|
<fileset basedir="${dirs.merge.from}" >
|
141
117
|
<include name="*.*" />
|
@@ -155,30 +131,8 @@
|
|
155
131
|
<delete dir="${dirs.merge.to}" failonerror="false" />
|
156
132
|
</target>
|
157
133
|
|
158
|
-
<target name="custom_tasks_after">
|
159
|
-
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
160
|
-
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
161
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
162
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
163
|
-
</exec>
|
164
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
165
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
166
|
-
</exec>
|
167
|
-
</target>
|
168
|
-
|
169
134
|
<target name="load_uppercut_assemblies">
|
170
135
|
<loadtasks assembly="${path.uppercut.assembly}" if="${file::exists(path.uppercut.assembly)}" />
|
171
136
|
</target>
|
172
|
-
|
173
|
-
<target name="allow_powershell_unrestricted">
|
174
|
-
<!-- powershell 1.0 -->
|
175
|
-
<exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
|
176
|
-
<arg value="set-executionpolicy unrestricted" />
|
177
|
-
</exec>
|
178
|
-
<!-- powershell 2.0 -->
|
179
|
-
<exec program="powershell.exe" if="${allow.powershell.unrestricted}" failonerror="false">
|
180
|
-
<arg value="set-executionpolicy unrestricted -force -scope CurrentUser" />
|
181
|
-
</exec>
|
182
|
-
</target>
|
183
137
|
|
184
138
|
</project>
|
data/lib/build/nugetBuild.step
CHANGED
@@ -46,55 +46,33 @@
|
|
46
46
|
<target name="go" depends="run_tasks" if="${folder.nuget.exists and app.nuget.exists}" />
|
47
47
|
|
48
48
|
<target name="run_tasks" if="${folder.nuget.exists}">
|
49
|
-
<echo
|
50
|
-
<
|
51
|
-
<
|
49
|
+
<echo level="Warning" message="" />
|
50
|
+
<echo level="Warning" message="====================" />
|
51
|
+
<echo level="Warning" message="${project::get-name()}" />
|
52
|
+
<echo level="Warning" message="====================" />
|
53
|
+
<customExtension extends="${project::get-buildfile-path()}" type="pre" failonerror="${fail.build.on.error}" />
|
54
|
+
<customExtension extends="${project::get-buildfile-path()}" type="replace" failonerror="${fail.build.on.error}" />
|
52
55
|
<call target="run_normal_tasks" if="${not is.replaced}" />
|
53
|
-
<
|
56
|
+
<customExtension extends="${project::get-buildfile-path()}" type="post" failonerror="${fail.build.on.error}" />
|
54
57
|
</target>
|
55
58
|
|
56
59
|
<target name="run_normal_tasks"
|
57
60
|
depends="build_nugget,remove_nuget_files"
|
58
61
|
description="Building nuget." />
|
59
62
|
|
60
|
-
<target name="custom_tasks_before">
|
61
|
-
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
62
|
-
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
63
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
64
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
65
|
-
</exec>
|
66
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
67
|
-
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
68
|
-
</exec>
|
69
|
-
</target>
|
70
|
-
|
71
|
-
<target name="custom_tasks_replace">
|
72
|
-
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
73
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
74
|
-
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
75
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
76
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
77
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
78
|
-
</exec>
|
79
|
-
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
80
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
81
|
-
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
82
|
-
</exec>
|
83
|
-
</target>
|
84
|
-
|
85
63
|
<target name="build_nugget">
|
86
|
-
<echo message="Finding and building all nuggets in ${dirs.drop.nuget}."/>
|
64
|
+
<echo level="Warning" message="Finding and building all nuggets in ${dirs.drop.nuget}."/>
|
87
65
|
<foreach item="File" property="spec.file">
|
88
66
|
<in>
|
89
67
|
<items>
|
90
|
-
<include name="${dirs.drop.nuget}${path.separator}*.nuspec" />
|
68
|
+
<include name="${dirs.drop.nuget}${path.separator}**${path.separator}*.nuspec" />
|
91
69
|
</items>
|
92
70
|
</in>
|
93
71
|
<do>
|
94
|
-
<echo message="executing '${app.nuget} pack ${spec.file}'" />
|
72
|
+
<echo level="Warning" message="executing '${app.nuget} pack ${spec.file}'" />
|
95
73
|
<exec
|
96
74
|
program="cmd"
|
97
|
-
workingdir="${
|
75
|
+
workingdir="${directory::get-parent-directory(spec.file)}"
|
98
76
|
failonerror="false">
|
99
77
|
<arg value="/c ${app.nuget} pack ${spec.file}" />
|
100
78
|
</exec>
|
@@ -105,21 +83,10 @@
|
|
105
83
|
<target name="remove_nuget_files">
|
106
84
|
<delete>
|
107
85
|
<fileset basedir="${dirs.drop.nuget}" >
|
108
|
-
<exclude name="
|
86
|
+
<exclude name="**/*.nupkg" />
|
109
87
|
<include name="**/*" />
|
110
88
|
</fileset>
|
111
89
|
</delete>
|
112
90
|
</target>
|
113
|
-
|
114
|
-
<target name="custom_tasks_after">
|
115
|
-
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
116
|
-
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
117
|
-
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
118
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
119
|
-
</exec>
|
120
|
-
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
121
|
-
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
122
|
-
</exec>
|
123
|
-
</target>
|
124
91
|
|
125
92
|
</project>
|