uppercutbuild 1.1.2.0 → 1.2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/docs/README +24 -23
- data/lib/build/UppercuT.xml +1 -1
- data/lib/build/default.build +2 -0
- data/lib/build/gemsBuild.step +10 -3
- data/lib/build/nugetBuild.step +125 -0
- data/lib/build/nugetPrepare.step +171 -0
- data/lib/build/uppercut.dll +0 -0
- data/lib/build/uppercut.tasks.dll +0 -0
- data/lib/build/zip.build +1 -0
- data/lib/lib/NuGet/LICENSE.txt +177 -0
- data/lib/lib/NuGet/NuGet.exe +0 -0
- data/lib/nuget/__NAME__.nuspec +19 -0
- data/lib/settings/UppercuT.config +2 -1
- metadata +9 -4
data/docs/README
CHANGED
@@ -1,23 +1,24 @@
|
|
1
1
|
Project UppercuT - Builds in Seconds, Not Days
|
2
2
|
=======
|
3
|
-
|
4
|
-
![UppercuT](https://github.com/chucknorris/uppercut/raw/master/docs/logo/UppercuT_Logo_Small.jpg "UppercuT - insanely easy. Insanely.")
|
5
|
-
|
3
|
+
|
4
|
+
![UppercuT](https://github.com/chucknorris/uppercut/raw/master/docs/logo/UppercuT_Logo_Small.jpg "UppercuT - insanely easy. Insanely.")
|
5
|
+
|
6
6
|
# LICENSE
|
7
|
-
Apache 2.0 - see docs/legal (just LEGAL in the zip folder)
|
8
|
-
|
7
|
+
Apache 2.0 - see docs/legal (just LEGAL in the zip folder)
|
8
|
+
|
9
9
|
# IMPORTANT
|
10
|
-
NOTE: If you are looking at the source - please run build.bat before opening the solution. It creates the SolutionVersion.cs file that is necessary for a successful build.
|
11
|
-
|
10
|
+
NOTE: If you are looking at the source - please run build.bat before opening the solution. It creates the SolutionVersion.cs file that is necessary for a successful build.
|
11
|
+
|
12
12
|
# INFO
|
13
13
|
## Overview
|
14
|
-
UppercuT is automated .NET build framework
|
15
|
-
|
14
|
+
UppercuT is a conventional automated .NET build framework (templated NAnt). UppercuT is the insanely easy to use build framework.
|
15
|
+
|
16
16
|
It seeks to solve both maintenance concerns and ease of build to help you concentrate on what you really want to do: write code. Upgrading the build should take seconds, not hours. And that is where UppercuT will beat any other automated build system hands down.
|
17
|
-
|
18
|
-
|
17
|
+
|
18
|
+
UppercuT uses conventions and has a simple configuration file for you to edit. Getting from zero to build takes literally less than five minutes. If you are still writing your own build scripts, you are working too hard.
|
19
|
+
|
19
20
|
UppercuT is extremely powerful because it is customizable and extendable. Every step of the build process is customizable with a pre, post and replace hook.
|
20
|
-
|
21
|
+
|
21
22
|
UppercuT is not a build server, but it integrates nicely with CruiseControl.NET, TeamCity, Hudson, etc.
|
22
23
|
|
23
24
|
## Join the mailing list
|
@@ -36,19 +37,18 @@ If you have Ruby 1.8.6+ (and Gems 1.3.7+) installed, you can get the current rel
|
|
36
37
|
2. At the top level directory (trunk or branch name) type 'uppercutbuild init' for bringing in uppercut for the first time or 'uppercutbuild upgrade' if you already uppercut and are just wanting to upgrade the build folder.
|
37
38
|
|
38
39
|
### Source
|
39
|
-
This is the best way to get to the bleeding edge of
|
40
|
-
|
41
|
-
1. Clone the source down to your machine.
|
40
|
+
This is the best way to get to the bleeding edge of the code.
|
41
|
+
|
42
|
+
1. Clone the source down to your machine.
|
42
43
|
`git clone git://github.com/chucknorris/uppercut.git`
|
43
44
|
2. Type `cd uppercut`
|
44
45
|
3. Type `git config core.autocrlf false` to set line endings to auto convert for this repository
|
45
|
-
4. Type `git status`. You should not see any files to change.
|
46
|
+
4. Type `git status`. You should not see any files to change.
|
46
47
|
5. Run `build.bat`. NOTE: You must have git on the path (open a regular command line and type git).
|
47
48
|
|
48
|
-
|
49
49
|
# REQUIREMENTS
|
50
50
|
* .NET Framework 3.5
|
51
|
-
*
|
51
|
+
* Source control on the command line and in PATH environment variable - svn for Subversion / tf for TFS / git for Git
|
52
52
|
|
53
53
|
# DONATE
|
54
54
|
Donations Accepted - If you enjoy using this product or it has saved you time and money in some way, please consider making a donation.
|
@@ -59,11 +59,12 @@ It helps keep to the product updated, pays for site hosting, etc. https://www.pa
|
|
59
59
|
* Adding in support for xUnit.
|
60
60
|
* Adding in support for StorEvil.
|
61
61
|
|
62
|
-
|
63
|
-
*
|
62
|
+
=1.2.0.0=
|
63
|
+
* NuGet Support. New settings have been added to the uppercut.config: <property name="app.nuget" value="..${path.separator}${folder.references}${path.separator}NuGet${path.separator}NuGet.exe" overwrite="false" /> and a tool that goes under the lib folder: NuGet - see http://code.google.com/p/uppercut/issues/detail?id=20 for details. (378)
|
64
64
|
|
65
|
-
|
66
|
-
*
|
65
|
+
=1.1.1.0=
|
66
|
+
* Including Eazfuscator in the output (375)
|
67
|
+
* Adding a build.log to the output of the build - see http://code.google.com/p/uppercut/issues/detail?id=22 for details. (373)
|
67
68
|
|
68
69
|
=1.1.0.0=
|
69
70
|
* Added support for obfuscation. New settings have been added to the uppercut.config: <property name="obfuscation" value="false" overwrite="false" /> <property name="app.eazfuscator" value="..${path.separator}${folder.references}${path.separator}Eazfuscator.NET${path.separator}Eazfuscator.NET.exe" overwrite="false" /> and a tool that goes under the lib folder: Eazfuscator.NET - see http://code.google.com/p/uppercut/issues/detail?id=21 for details. (372)
|
@@ -161,4 +162,4 @@ It helps keep to the product updated, pays for site hosting, etc. https://www.pa
|
|
161
162
|
* BREAKING CHANGE: For your custom tasks, you may need to make changes.
|
162
163
|
|
163
164
|
# CREDITS
|
164
|
-
see docs/legal/CREDITS (just LEGAL/Credits in the zip folder)
|
165
|
+
see docs/legal/CREDITS (just LEGAL/Credits in the zip folder)
|
data/lib/build/UppercuT.xml
CHANGED
data/lib/build/default.build
CHANGED
@@ -120,6 +120,8 @@
|
|
120
120
|
<nant buildfile="${dirs.current}${path.separator}ilmerge.build" inheritall="true" if="${run.ilmerge}" />
|
121
121
|
<nant buildfile="${dirs.current}${path.separator}gemsPrepare.step" inheritall="true" failonerror="false" />
|
122
122
|
<nant buildfile="${dirs.current}${path.separator}gemsBuild.step" inheritall="true" failonerror="false" />
|
123
|
+
<nant buildfile="${dirs.current}${path.separator}nugetPrepare.step" inheritall="true" failonerror="false" />
|
124
|
+
<nant buildfile="${dirs.current}${path.separator}nugetBuild.step" inheritall="true" failonerror="false" />
|
123
125
|
</target>
|
124
126
|
|
125
127
|
<target name="get_revision">
|
data/lib/build/gemsBuild.step
CHANGED
@@ -33,8 +33,6 @@
|
|
33
33
|
<property name="version.build" value="0" overwrite="false" />
|
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
|
-
<property name="file.gems.version" value="${dirs.drop.gems}${path.separator}VERSION" />
|
37
|
-
|
38
36
|
|
39
37
|
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
40
38
|
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
@@ -53,7 +51,7 @@
|
|
53
51
|
</target>
|
54
52
|
|
55
53
|
<target name="run_normal_tasks"
|
56
|
-
depends="build_gem"
|
54
|
+
depends="build_gem, remove_gem_files"
|
57
55
|
description="Building gems." />
|
58
56
|
|
59
57
|
<target name="custom_tasks_before">
|
@@ -100,6 +98,15 @@
|
|
100
98
|
</foreach>
|
101
99
|
</target>
|
102
100
|
|
101
|
+
<target name="remove_gem_files">
|
102
|
+
<delete>
|
103
|
+
<fileset basedir="${dirs.drop.gems}" >
|
104
|
+
<exclude name="*.gem" />
|
105
|
+
<include name="**/*" />
|
106
|
+
</fileset>
|
107
|
+
</delete>
|
108
|
+
</target>
|
109
|
+
|
103
110
|
<target name="custom_tasks_after">
|
104
111
|
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
105
112
|
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
@@ -0,0 +1,125 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="nugetBuild" 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="nugetBuild" />
|
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.nuget" value="nuget" overwrite="false" />
|
28
|
+
<property name="dirs.nuget" value="${path.to.toplevel}${path.separator}${folder.nuget}" overwrite="false" />
|
29
|
+
<property name="dirs.drop.nuget" value="${dirs.drop}${path.separator}${folder.nuget}" overwrite="false" />
|
30
|
+
<property name="folder.nuget.exists" value="${directory::exists(dirs.nuget)}" />
|
31
|
+
<property name="version.major" value="1" overwrite="false" />
|
32
|
+
<property name="version.minor" value="0" overwrite="false" />
|
33
|
+
<property name="version.build" value="0" overwrite="false" />
|
34
|
+
<property name="version.revision" value="0" overwrite="false" />
|
35
|
+
<property name="assembly.version.full" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
|
36
|
+
<property name="app.nuget" value="..${path.separator}..${path.separator}${folder.references}${path.separator}NuGet${path.separator}NuGet.exe" overwrite="false" />
|
37
|
+
<property name="app.nuget" value="${path::get-full-path(app.nuget)}" />
|
38
|
+
<property name="app.nuget.exists" value="${file::exists(app.nuget)}" />
|
39
|
+
|
40
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
41
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
42
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
43
|
+
<property name="is.replaced" value="false" />
|
44
|
+
<property name="fail.build.on.error" value="false" />
|
45
|
+
|
46
|
+
<target name="go" depends="run_tasks" if="${folder.nuget.exists and app.nuget.exists}" />
|
47
|
+
|
48
|
+
<target name="run_tasks" if="${folder.nuget.exists}">
|
49
|
+
<echo message="Running ${project::get-name()} tasks." />
|
50
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
51
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
52
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
53
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
54
|
+
</target>
|
55
|
+
|
56
|
+
<target name="run_normal_tasks"
|
57
|
+
depends="build_nugget,remove_nuget_files"
|
58
|
+
description="Building nuget." />
|
59
|
+
|
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
|
+
<target name="build_nugget">
|
86
|
+
<echo message="Finding and building all nuggets in ${dirs.drop.nuget}."/>
|
87
|
+
<foreach item="File" property="spec.file">
|
88
|
+
<in>
|
89
|
+
<items>
|
90
|
+
<include name="${dirs.drop.nuget}${path.separator}*.nuspec" />
|
91
|
+
</items>
|
92
|
+
</in>
|
93
|
+
<do>
|
94
|
+
<echo message="executing '${app.nuget} pack ${spec.file}'" />
|
95
|
+
<exec
|
96
|
+
program="cmd"
|
97
|
+
workingdir="${dirs.drop.nuget}"
|
98
|
+
failonerror="false">
|
99
|
+
<arg value="/c ${app.nuget} pack ${spec.file}" />
|
100
|
+
</exec>
|
101
|
+
</do>
|
102
|
+
</foreach>
|
103
|
+
</target>
|
104
|
+
|
105
|
+
<target name="remove_nuget_files">
|
106
|
+
<delete>
|
107
|
+
<fileset basedir="${dirs.drop.nuget}" >
|
108
|
+
<exclude name="*.nupkg" />
|
109
|
+
<include name="**/*" />
|
110
|
+
</fileset>
|
111
|
+
</delete>
|
112
|
+
</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
|
+
|
125
|
+
</project>
|
@@ -0,0 +1,171 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8" ?>
|
2
|
+
<project name="nugetPrepare" 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="nugetPrepare" />
|
9
|
+
<property name="dirs.current" value="${directory::get-parent-directory(project::get-buildfile-path())}" />
|
10
|
+
<property name="path.to.toplevel" value=".." />
|
11
|
+
<property name="project.name" value="app" overwrite="false" />
|
12
|
+
<property name="folder.build_scripts" value="build" overwrite="false" />
|
13
|
+
<property name="folder.build_scripts_custom" value="build.custom" overwrite="false" />
|
14
|
+
<property name="dirs.build_scripts_custom" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.build_scripts_custom}" />
|
15
|
+
<property name="folder.code_build" value="build_output" overwrite="false" />
|
16
|
+
<property name="dirs.build" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.code_build}" />
|
17
|
+
<property name="folder.code_drop" value="code_drop" overwrite="false" />
|
18
|
+
<property name="dirs.drop" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.code_drop}" overwrite="false" />
|
19
|
+
<property name="folder.build_artifacts" value="build_artifacts" overwrite="false" />
|
20
|
+
<property name="folder.app.drop" value="${project.name}" overwrite="false" />
|
21
|
+
<property name="folder.database" value="__DATABASE_FOLDER_NAME__" overwrite="false" />
|
22
|
+
<property name="folder.reports" value="${project.name}.Reports" overwrite="false" />
|
23
|
+
<property name="folder.file_server" value="file.server" overwrite="false" />
|
24
|
+
<property name="folder.environment_files" value="environment.files" overwrite="false" />
|
25
|
+
<property name="folder.deployment" value="deployment" overwrite="false" />
|
26
|
+
<property name="folder.settings" value="settings" overwrite="false" />
|
27
|
+
<property name="folder.documentation" value="docs" overwrite="false" />
|
28
|
+
<property name="folder.nuget" value="nuget" overwrite="false" />
|
29
|
+
<property name="dirs.nuget" value="${path.to.toplevel}${path.separator}${folder.nuget}" overwrite="false" />
|
30
|
+
<property name="dirs.drop.nuget" value="${dirs.drop}${path.separator}${folder.nuget}" overwrite="false" />
|
31
|
+
<property name="folder.nuget.exists" value="${directory::exists(dirs.nuget)}" />
|
32
|
+
<property name="version.use_semanticversioning" value="false" overwrite="false" />
|
33
|
+
<property name="version.major" value="1" overwrite="false" />
|
34
|
+
<property name="version.minor" value="0" overwrite="false" />
|
35
|
+
<property name="version.patch" value="0" overwrite="false" />
|
36
|
+
<property name="version.build" value="0" overwrite="false" />
|
37
|
+
<property name="version.revision" value="0" overwrite="false" />
|
38
|
+
<property name="assembly.version.full" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
|
39
|
+
<property name="assembly.version.full" value="${version.major}.${version.minor}.${version.patch}.0" if="${version.use_semanticversioning}" />
|
40
|
+
<property name="file.nuget.version" value="${dirs.drop.nuget}${path.separator}version.xml" />
|
41
|
+
|
42
|
+
<property name="file.custom.step.before" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.pre.step" />
|
43
|
+
<property name="file.custom.step.after" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.post.step" />
|
44
|
+
<property name="file.custom.step.replace" value="${dirs.build_scripts_custom}${path.separator}${file.current.no_extension}.replace.step" />
|
45
|
+
<property name="is.replaced" value="false" />
|
46
|
+
<property name="fail.build.on.error" value="false" />
|
47
|
+
|
48
|
+
<target name="go" depends="run_tasks" if="${folder.nuget.exists}" />
|
49
|
+
|
50
|
+
<target name="run_tasks" if="${folder.nuget.exists}">
|
51
|
+
<echo message="Running ${project::get-name()} tasks." />
|
52
|
+
<call target="custom_tasks_before" if="${target::exists('custom_tasks_before')}" />
|
53
|
+
<call target="custom_tasks_replace" if="${target::exists('custom_tasks_replace')}" />
|
54
|
+
<call target="run_normal_tasks" if="${not is.replaced}" />
|
55
|
+
<call target="custom_tasks_after" if="${target::exists('custom_tasks_after')}" />
|
56
|
+
</target>
|
57
|
+
|
58
|
+
<target name="run_normal_tasks"
|
59
|
+
depends="prepare, copy_nuget_folder, copy_app_drop_to_lib_folder, copy_docs_to_doc_folder, copy_notices_to_doc_folder, update_nuspecs_with_version"
|
60
|
+
description="Packaging nuget." />
|
61
|
+
|
62
|
+
<target name="prepare">
|
63
|
+
<echo message="Removing and adding ${dirs.drop.nuget}."/>
|
64
|
+
<delete dir="${dirs.drop.nuget}" failonerror="false" />
|
65
|
+
<mkdir dir="${dirs.drop.nuget}" />
|
66
|
+
</target>
|
67
|
+
|
68
|
+
<target name="custom_tasks_before">
|
69
|
+
<echo message="Running custom tasks if ${file.custom.step.before} exists." />
|
70
|
+
<nant buildfile="${file.custom.step.before}" inheritall="true" if="${file::exists(file.custom.step.before)}" failonerror="${fail.build.on.error}" />
|
71
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.before + '.ps1')}" failonerror="${fail.build.on.error}">
|
72
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.ps1')}" />
|
73
|
+
</exec>
|
74
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.before + '.rb')}" failonerror="${fail.build.on.error}">
|
75
|
+
<arg value="${path::get-full-path(file.custom.step.before + '.rb')}" />
|
76
|
+
</exec>
|
77
|
+
</target>
|
78
|
+
|
79
|
+
<target name="custom_tasks_replace">
|
80
|
+
<echo message="Running custom tasks instead of normal tasks if ${file.custom.step.replace} exists." />
|
81
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace)}" />
|
82
|
+
<nant buildfile="${file.custom.step.replace}" inheritall="true" if="${file::exists(file.custom.step.replace)}" failonerror="${fail.build.on.error}" />
|
83
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.ps1')}" />
|
84
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.replace + '.ps1')}" failonerror="${fail.build.on.error}" >
|
85
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.ps1')}" />
|
86
|
+
</exec>
|
87
|
+
<property name="is.replaced" value="true" if="${file::exists(file.custom.step.replace + '.rb')}" />
|
88
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.replace + '.rb')}" failonerror="${fail.build.on.error}" >
|
89
|
+
<arg value="${path::get-full-path(file.custom.step.replace + '.rb')}" />
|
90
|
+
</exec>
|
91
|
+
</target>
|
92
|
+
|
93
|
+
<target name="copy_nuget_folder">
|
94
|
+
<echo message="Packaging nuspec specifications and special files from ${dirs.nuget} to ${dirs.drop.nuget}."/>
|
95
|
+
<copy todir="${dirs.drop.nuget}">
|
96
|
+
<fileset basedir="${dirs.nuget}">
|
97
|
+
<include name="**/**" />
|
98
|
+
</fileset>
|
99
|
+
</copy>
|
100
|
+
</target>
|
101
|
+
|
102
|
+
<target name="copy_app_drop_to_lib_folder">
|
103
|
+
<echo message="Packaging ${project.name} nuget pieces into ${dirs.drop.nuget}${path.separator}lib from ${dirs.drop}${path.separator}${folder.app.drop}."/>
|
104
|
+
<copy todir="${dirs.drop.nuget}${path.separator}lib">
|
105
|
+
<fileset basedir="${dirs.drop}${path.separator}${folder.app.drop}">
|
106
|
+
<include name="**/**" />
|
107
|
+
</fileset>
|
108
|
+
</copy>
|
109
|
+
</target>
|
110
|
+
|
111
|
+
<target name="copy_docs_to_doc_folder">
|
112
|
+
<echo message="Packaging docs to ${dirs.drop.nuget}${path.separator}docs."/>
|
113
|
+
<copy todir="${dirs.drop.nuget}${path.separator}docs" failonerror="false">
|
114
|
+
<fileset basedir="${dirs.drop}${path.separator}${folder.documentation}">
|
115
|
+
<include name="**/**" />
|
116
|
+
</fileset>
|
117
|
+
</copy>
|
118
|
+
</target>
|
119
|
+
|
120
|
+
<target name="copy_notices_to_doc_folder">
|
121
|
+
<echo message="Packaging readme file to ${dirs.drop.nuget}${path.separator}docs."/>
|
122
|
+
<copy file="${dirs.current}${path.separator}..${path.separator}README.markdown" tofile="${dirs.drop.nuget}${path.separator}docs${path.separator}README" failonerror="false" />
|
123
|
+
|
124
|
+
<echo message="Packaging other legal stuff to ${dirs.drop.nuget}${path.separator}docs."/>
|
125
|
+
<copy todir="${dirs.drop.nuget}${path.separator}docs" failonerror="false">
|
126
|
+
<fileset basedir="${dirs.drop}${path.separator}LEGAL">
|
127
|
+
<include name="**/*" />
|
128
|
+
</fileset>
|
129
|
+
</copy>
|
130
|
+
</target>
|
131
|
+
|
132
|
+
<target name="generate_version_file">
|
133
|
+
<echo message="Generating ${file.nuget.version} with ${assembly.version.full} for the version" />
|
134
|
+
<echo file="${file.nuget.version}" append="false" failonerror="false">
|
135
|
+
<![CDATA[<?xml version="1.0" ?>
|
136
|
+
<nuget>
|
137
|
+
<version>${assembly.version.full}</version>
|
138
|
+
</nuget>]]>
|
139
|
+
</echo>
|
140
|
+
</target>
|
141
|
+
|
142
|
+
<target name="update_nuspecs_with_version">
|
143
|
+
<echo message="Finding and updating version in all nuspec files in ${dirs.drop.nuget}."/>
|
144
|
+
<foreach item="File" property="spec.file">
|
145
|
+
<in>
|
146
|
+
<items>
|
147
|
+
<include name="${dirs.drop.nuget}${path.separator}*.nuspec" />
|
148
|
+
</items>
|
149
|
+
</in>
|
150
|
+
<do>
|
151
|
+
<echo message="Replacing version in '${spec.file}'" />
|
152
|
+
<xmlpoke
|
153
|
+
file="${spec.file}"
|
154
|
+
xpath="/package/metadata/version"
|
155
|
+
value="${assembly.version.full}" />
|
156
|
+
</do>
|
157
|
+
</foreach>
|
158
|
+
</target>
|
159
|
+
|
160
|
+
<target name="custom_tasks_after">
|
161
|
+
<echo message="Running custom tasks if ${file.custom.step.after} exists." />
|
162
|
+
<nant buildfile="${file.custom.step.after}" inheritall="true" if="${file::exists(file.custom.step.after)}" failonerror="${fail.build.on.error}" />
|
163
|
+
<exec program="powershell.exe" if="${file::exists(file.custom.step.after + '.ps1')}" failonerror="${fail.build.on.error}" >
|
164
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.ps1')}" />
|
165
|
+
</exec>
|
166
|
+
<exec program="ruby.exe" if="${file::exists(file.custom.step.after + '.rb')}" failonerror="${fail.build.on.error}" >
|
167
|
+
<arg value="${path::get-full-path(file.custom.step.after + '.rb')}" />
|
168
|
+
</exec>
|
169
|
+
</target>
|
170
|
+
|
171
|
+
</project>
|
data/lib/build/uppercut.dll
CHANGED
Binary file
|
Binary file
|
data/lib/build/zip.build
CHANGED
@@ -0,0 +1,177 @@
|
|
1
|
+
|
2
|
+
Apache License
|
3
|
+
Version 2.0, January 2004
|
4
|
+
http://www.apache.org/licenses/
|
5
|
+
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
+
|
8
|
+
1. Definitions.
|
9
|
+
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
+
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
+
the copyright owner that is granting the License.
|
15
|
+
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
+
other entities that control, are controlled by, or are under common
|
18
|
+
control with that entity. For the purposes of this definition,
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
20
|
+
direction or management of such entity, whether by contract or
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
+
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
+
exercising permissions granted by this License.
|
26
|
+
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
28
|
+
including but not limited to software source code, documentation
|
29
|
+
source, and configuration files.
|
30
|
+
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
32
|
+
transformation or translation of a Source form, including but
|
33
|
+
not limited to compiled object code, generated documentation,
|
34
|
+
and conversions to other media types.
|
35
|
+
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
37
|
+
Object form, made available under the License, as indicated by a
|
38
|
+
copyright notice that is included in or attached to the work
|
39
|
+
(an example is provided in the Appendix below).
|
40
|
+
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
+
the Work and Derivative Works thereof.
|
48
|
+
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
50
|
+
the original version of the Work and any modifications or additions
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
+
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
65
|
+
subsequently incorporated within the Work.
|
66
|
+
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
73
|
+
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
+
where such license applies only to those patent claims licensable
|
80
|
+
by such Contributor that are necessarily infringed by their
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
83
|
+
institute patent litigation against any entity (including a
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
86
|
+
or contributory patent infringement, then any patent licenses
|
87
|
+
granted to You under this License for that Work shall terminate
|
88
|
+
as of the date such litigation is filed.
|
89
|
+
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
92
|
+
modifications, and in Source or Object form, provided that You
|
93
|
+
meet the following conditions:
|
94
|
+
|
95
|
+
(a) You must give any other recipients of the Work or
|
96
|
+
Derivative Works a copy of this License; and
|
97
|
+
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
99
|
+
stating that You changed the files; and
|
100
|
+
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
103
|
+
attribution notices from the Source form of the Work,
|
104
|
+
excluding those notices that do not pertain to any part of
|
105
|
+
the Derivative Works; and
|
106
|
+
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
109
|
+
include a readable copy of the attribution notices contained
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
112
|
+
of the following places: within a NOTICE text file distributed
|
113
|
+
as part of the Derivative Works; within the Source form or
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
115
|
+
within a display generated by the Derivative Works, if and
|
116
|
+
wherever such third-party notices normally appear. The contents
|
117
|
+
of the NOTICE file are for informational purposes only and
|
118
|
+
do not modify the License. You may add Your own attribution
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
121
|
+
that such additional attribution notices cannot be construed
|
122
|
+
as modifying the License.
|
123
|
+
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
125
|
+
may provide additional or different license terms and conditions
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
129
|
+
the conditions stated in this License.
|
130
|
+
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
134
|
+
this License, without any additional terms or conditions.
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
+
the terms of any separate license agreement you may have executed
|
137
|
+
with Licensor regarding such Contributions.
|
138
|
+
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
141
|
+
except as required for reasonable and customary use in describing the
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
+
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
153
|
+
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
159
|
+
incidental, or consequential damages of any character arising as a
|
160
|
+
result of this License or out of the use or inability to use the
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
163
|
+
other commercial damages or losses), even if such Contributor
|
164
|
+
has been advised of the possibility of such damages.
|
165
|
+
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
+
or other liability obligations and/or rights consistent with this
|
170
|
+
License. However, in accepting such obligations, You may act only
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
175
|
+
of your accepting any such warranty or additional liability.
|
176
|
+
|
177
|
+
END OF TERMS AND CONDITIONS
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0"?>
|
2
|
+
<package xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
3
|
+
<metadata>
|
4
|
+
<id>__REPLACE__</id>
|
5
|
+
<version>DO_NOT_EDIT</version>
|
6
|
+
<authors>__REPLACE__</authors>
|
7
|
+
<owners>__REPLACE__</owners>
|
8
|
+
<summary>__REPLACE__</summary>
|
9
|
+
<description>__REPLACE__</description>
|
10
|
+
<!--<projectUrl>__REPLACE__</projectUrl>
|
11
|
+
<licenseUrl>__REPLACE__</licenseUrl>
|
12
|
+
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
13
|
+
<tags>space delimited</tags>
|
14
|
+
<iconUrl>32x32.png</iconUrl>
|
15
|
+
<dependencies>
|
16
|
+
<dependency id="something" version="1.0.0.0" />
|
17
|
+
</dependencies>-->
|
18
|
+
</metadata>
|
19
|
+
</package>
|
@@ -81,7 +81,8 @@
|
|
81
81
|
<property name="app.nitriq" value="C:\Program Files (x86)\NimblePros\Nitriq Console + Pro\Nitriq.Console.exe" overwrite="false" />
|
82
82
|
<property name="app.xbuild" value="C:\Program Files (x86)\Mono-2.8\bin\xbuild.bat" overwrite="false" />
|
83
83
|
<property name="app.eazfuscator" value="..${path.separator}${folder.references}${path.separator}Eazfuscator.NET${path.separator}Eazfuscator.NET.exe" overwrite="false" />
|
84
|
-
|
84
|
+
<property name="app.nuget" value="..${path.separator}${folder.references}${path.separator}NuGet${path.separator}NuGet.exe" overwrite="false" />
|
85
|
+
|
85
86
|
<property name="allow.powershell.unrestricted" value="false" overwrite="false" />
|
86
87
|
<property name="run.ilmerge" value="false" overwrite="false" />
|
87
88
|
</project>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uppercutbuild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 79
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
|
-
- 1
|
9
8
|
- 2
|
10
9
|
- 0
|
11
|
-
|
10
|
+
- 0
|
11
|
+
version: 1.2.0.0
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Rob "FerventCoder" Reynolds
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-01-
|
20
|
+
date: 2011-01-23 00:00:00 -06:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -77,6 +77,8 @@ files:
|
|
77
77
|
- lib/build/gemsPrepare.step
|
78
78
|
- lib/build/generateBuildInfo.step
|
79
79
|
- lib/build/ilmerge.build
|
80
|
+
- lib/build/nugetBuild.step
|
81
|
+
- lib/build/nugetPrepare.step
|
80
82
|
- lib/build/obfuscate.step
|
81
83
|
- lib/build/open.build
|
82
84
|
- lib/build/package.step
|
@@ -274,6 +276,8 @@ files:
|
|
274
276
|
- lib/lib/NCover/NCoverExplorerReleaseNotes.html
|
275
277
|
- lib/lib/NCover/NCoverFAQ.html
|
276
278
|
- lib/lib/NCover/VC80CRT.MAN
|
279
|
+
- lib/lib/NuGet/LICENSE.txt
|
280
|
+
- lib/lib/NuGet/NuGet.exe
|
277
281
|
- lib/lib/NUnit/agent.conf
|
278
282
|
- lib/lib/NUnit/agent.log.conf
|
279
283
|
- lib/lib/NUnit/framework/nunit.framework.dll
|
@@ -336,6 +340,7 @@ files:
|
|
336
340
|
- lib/lib/NUnit/tests/test-utilities.dll
|
337
341
|
- lib/lib/NUnit/tests/timing-tests.dll
|
338
342
|
- lib/NDepend.xml
|
343
|
+
- lib/nuget/__NAME__.nuspec
|
339
344
|
- lib/open.bat
|
340
345
|
- lib/open.sh
|
341
346
|
- lib/settings/LOCAL.settings
|