uppercutbuild 1.0.0.0.20100806 → 1.0.1.0.20100809

Sign up to get free protection for your applications and to get access to all the features.
data/docs/README CHANGED
@@ -55,6 +55,10 @@ Donations Accepted - If you enjoy using this product or it has saved you time an
55
55
  It helps keep to the product updated, pays for site hosting, etc. https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4410250
56
56
 
57
57
  # RELEASE NOTES
58
+ =1.0.1.0=
59
+ * UppercuT has an option to use the old versioning as well. You need to add this to your config file: <property name="version.use_semanticversioning" value="false" overwrite="false" /> (r354)
60
+ * Linux fixes for opening items (from Svein Ackenhausen) (r355)
61
+
58
62
  =1.0.0.0=
59
63
  * UppercuT now uses semantic versioning See http://SemVer.org for details. You need to add this to your config file: <property name="version.patch" value="0" overwrite="false" /> (r351)
60
64
  * UppercuT now builds on Linux (patch from Svein Ackenhausen). (r350)
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" ?>
2
2
  <uppercut>
3
- <version>1.0.0.352</version>
3
+ <version>1.0.0.356</version>
4
4
  </uppercut>
5
5
 
@@ -0,0 +1,85 @@
1
+ <?xml version="1.0" encoding="utf-8" ?>
2
+ <project name="BuildSettings">
3
+ <script language="C#" >
4
+ <references>
5
+ <include name="System.dll" />
6
+ </references>
7
+ <imports>
8
+ <import namespace="System" />
9
+ <import namespace="System.Diagnostics" />
10
+ <import namespace="System.IO" />
11
+ <import namespace="System.Reflection" />
12
+ <import namespace="Nant.Core" />
13
+ <import namespace="Nant.Core.Attributes" />
14
+ </imports>
15
+ <code>
16
+ <![CDATA[
17
+
18
+ [TaskName("results")]
19
+ public class ResultsProcessTask : Task
20
+ {
21
+ private string _display;
22
+
23
+ [TaskAttribute("display", Required = true)]
24
+ public string Display
25
+ {
26
+ get { return _display; }
27
+ set { _display = value; }
28
+ }
29
+
30
+ protected override void ExecuteTask()
31
+ {
32
+ if (platformIsWindows())
33
+ ExecuteProcess(CombinePaths(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles),"Internet Explorer","iexplore.exe"), Display);
34
+ else
35
+ ExecuteProcess(Display);
36
+ }
37
+
38
+ protected string CombinePaths(params string[] paths)
39
+ {
40
+ string combinedPath = string.Empty;
41
+
42
+ foreach (string path in paths)
43
+ {
44
+ combinedPath = Path.Combine(combinedPath, path);
45
+ }
46
+
47
+ return combinedPath;
48
+ }
49
+
50
+ protected void ExecuteProcess(string file)
51
+ {
52
+ ProcessStartInfo psi = new ProcessStartInfo(file, "");
53
+ using (Process p = new Process())
54
+ {
55
+ p.StartInfo = psi;
56
+ p.Start();
57
+ }
58
+ }
59
+
60
+ protected void ExecuteProcess(string process, string arguments)
61
+ {
62
+ ProcessStartInfo psi = new ProcessStartInfo(Path.GetFullPath(process), arguments);
63
+ psi.UseShellExecute = false;
64
+ psi.RedirectStandardOutput = false;
65
+ psi.CreateNoWindow = false;
66
+
67
+ using (Process p = new Process())
68
+ {
69
+ p.StartInfo = psi;
70
+ p.Start();
71
+ }
72
+
73
+ }
74
+
75
+ protected bool platformIsWindows()
76
+ {
77
+ PlatformID platform = Environment.OSVersion.Platform;
78
+ return !(platform.Equals(PlatformID.Unix) || platform.Equals(PlatformID.MacOSX));
79
+ }
80
+ }
81
+
82
+ ]]>
83
+ </code>
84
+ </script>
85
+ </project>
@@ -28,12 +28,14 @@
28
28
  <property name="dirs.gems" value="${path.to.toplevel}${path.separator}${folder.gems}" overwrite="false" />
29
29
  <property name="dirs.drop.gems" value="${dirs.drop}${path.separator}${folder.gems}" overwrite="false" />
30
30
  <property name="folder.gems.exists" value="${directory::exists(dirs.gems)}" />
31
+ <property name="version.use_semanticversioning" value="true" overwrite="false" />
31
32
  <property name="version.major" value="1" overwrite="false" />
32
33
  <property name="version.minor" value="0" overwrite="false" />
33
34
  <property name="version.patch" value="0" overwrite="false" />
34
35
  <property name="version.build" value="0" overwrite="false" />
35
36
  <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="assembly.version.full" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
38
+ <property name="assembly.version.full" value="${version.major}.${version.minor}.${version.patch}.0" if="${version.use_semanticversioning}" />
37
39
  <property name="gem.build.date" value="20100801" overwrite="false" />
38
40
  <property name="file.gems.version" value="${dirs.drop.gems}${path.separator}VERSION" />
39
41
 
@@ -16,12 +16,14 @@
16
16
  <property name="file.build_info" value="${dirs.build}${path.separator}_BuildInfo.xml" />
17
17
  <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
18
18
  <property name="company.name" value="__COMPANY_NAME__" overwrite="false" />
19
+ <property name="version.use_semanticversioning" value="true" overwrite="false" />
19
20
  <property name="version.major" value="1" overwrite="false" />
20
21
  <property name="version.minor" value="0" overwrite="false" />
21
22
  <property name="version.patch" value="0" overwrite="false" />
22
23
  <property name="version.build" value="0" overwrite="false" />
23
24
  <property name="version.revision" value="0" overwrite="false" />
24
- <property name="version.full" value="${version.major}.${version.minor}.${version.patch}.0" />
25
+ <property name="version.full" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
26
+ <property name="version.full" value="${version.major}.${version.minor}.${version.patch}.0" if="${version.use_semanticversioning}" />
25
27
  <property name="repository.path" value="__REPOSITORY_PATH__" overwrite="false" />
26
28
  <property name="microsoft.framework" value="net-3.5" overwrite="false" />
27
29
  <property name="msbuild.configuration" value="Release" overwrite="false" />
data/lib/build/open.build CHANGED
@@ -67,11 +67,11 @@
67
67
 
68
68
  <target name="open_visual_studio">
69
69
  <if test="${platform::is-unix()}">
70
- <echo message="Opening MonoDevelop with solution file ${solution.path.full}."/>
70
+ <echo message="Opening MonoDevelop with solution file ${solution.path.full}"/>
71
71
  <exec
72
72
  spawn="true"
73
73
  program="${app.monodevelop}"
74
- commandline="${project.name}.sln"
74
+ commandline="${solution.path.full}"
75
75
  >
76
76
  </exec>
77
77
  </if>
Binary file
Binary file
@@ -20,6 +20,7 @@
20
20
  <property name="language.long" value="CSharp" />
21
21
  <property name="file.version" value="SolutionVersion.${language.short}" overwrite="false" />
22
22
  <property name="path.file.version" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${path_to_solution}${path.separator}${file.version}" overwrite="false" />
23
+ <property name="version.use_semanticversioning" value="true" overwrite="false" />
23
24
  <property name="version.major" value="1" overwrite="false" />
24
25
  <property name="version.minor" value="0" overwrite="false" />
25
26
  <property name="version.patch" value="0" overwrite="false" />
@@ -109,7 +110,14 @@
109
110
  </target>
110
111
 
111
112
  <target name="generate_assembly_info" description="Generate assembly info">
112
- <echo message="Generating SolutionVersion.${language.short} with assembly version ${version.major}.${version.minor}.${version.build}.${version.revision}." />
113
+ <property name="version.assembly" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
114
+ <property name="version.assembly" value="${version.major}.${version.minor}.${version.patch}.0" if="${version.use_semanticversioning}" />
115
+ <echo message="Generating SolutionVersion.${language.short} with assembly version ${version.assembly}." />
116
+ <property name="version.file" value="${version.major}.${version.minor}.${version.build}.${version.revision}" />
117
+ <property name="version.file" value="${version.major}.${version.minor}.${version.patch}.${version.build}" if="${version.use_semanticversioning}" />
118
+ <property name="version.product" value="${version.major}.${version.minor}.${version.build}.${version.hash}" />
119
+ <property name="version.product" value="${version.major}.${version.minor}.${version.patch}.${version.hash}" if="${version.use_semanticversioning}" />
120
+
113
121
  <asminfo output="${path.file.version}" language="${language.long}">
114
122
  <imports>
115
123
  <import namespace="System" />
@@ -121,9 +129,9 @@
121
129
  <attribute type="ComVisibleAttribute" value="false" />
122
130
  <attribute type="CLSCompliantAttribute" value="${assembly.clscompliant}" />
123
131
  <attribute type="AssemblyCompanyAttribute" value="${company.name}" />
124
- <attribute type="AssemblyVersionAttribute" value="${version.major}.${version.minor}.${version.patch}.0" />
125
- <attribute type="AssemblyFileVersionAttribute" value="${version.major}.${version.minor}.${version.patch}.${version.build}" />
126
- <attribute type="AssemblyInformationalVersionAttribute" value="${version.major}.${version.minor}.${version.patch}.${version.hash}" />
132
+ <attribute type="AssemblyVersionAttribute" value="${version.assembly}" />
133
+ <attribute type="AssemblyFileVersionAttribute" value="${version.file}" />
134
+ <attribute type="AssemblyInformationalVersionAttribute" value="${version.product}" />
127
135
  <attribute type="AssemblyTitleAttribute" value="${project.name}" />
128
136
  <attribute type="AssemblyProductAttribute" value="${project.name}" />
129
137
  <attribute type="AssemblyDescriptionAttribute" value="${assembly.description}" />
data/lib/build/zip.build CHANGED
@@ -14,6 +14,7 @@
14
14
  <property name="folder.code_drop" value="code_drop" overwrite="false" />
15
15
  <property name="dirs.drop" value="${dirs.current}${path.separator}${path.to.toplevel}${path.separator}${folder.code_drop}" overwrite="false" />
16
16
  <property name="project.name" value="__SOLUTION_NAME_WITHOUT_SLN_EXTENSION__" overwrite="false" />
17
+ <property name="version.use_semanticversioning" value="true" overwrite="false" />
17
18
  <property name="version.major" value="1" overwrite="false" />
18
19
  <property name="version.minor" value="0" overwrite="false" />
19
20
  <property name="version.patch" value="0" overwrite="false" />
@@ -97,10 +98,41 @@
97
98
  </target>
98
99
 
99
100
  <target name="get_version">
100
- <property name="version" value="${version.major}.${version.minor}.${version.patch}.0" />
101
+ <call target="get_revision" />
102
+ <call target="shorten_hash" />
103
+ <call target="get_build_number" />
104
+ <property name="version" value="${version.major}.${version.minor}.${version.build}.${version.hash}" />
105
+ <property name="version" value="${version.major}.${version.minor}.${version.patch}.0" if="${version.use_semanticversioning}" />
101
106
  <property name="zip.file.rename" value="${dirs.drop}${path.separator}${project.name}.v${version}.zip" />
102
107
  </target>
103
108
 
109
+ <target name="get_revision">
110
+ <nant buildfile="${dirs.current}${path.separator}versioners${path.separator}svn.step" inheritall="true" if="${source_control_type=='svn'}" />
111
+ <nant buildfile="${dirs.current}${path.separator}versioners${path.separator}tfs.step" inheritall="true" if="${source_control_type=='tfs'}" />
112
+ <nant buildfile="${dirs.current}${path.separator}versioners${path.separator}git.step" inheritall="true" if="${source_control_type=='git'}" />
113
+ <nant buildfile="${dirs.current}${path.separator}versioners${path.separator}hg.step" inheritall="true" if="${source_control_type=='hg'}" failonerror="false" />
114
+ <!--<nant buildfile="${dirs.current}${path.separator}versioners${path.separator}vault.step" inheritall="true" if="${source_control_type=='vault'}" />-->
115
+ <!--<nant buildfile="${dirs.current}${path.separator}versioners${path.separator}vss.step" inheritall="true" if="${source_control_type=='vss'}" />-->
116
+
117
+ <property name="version.revision" value="${environment::get-variable('uc.app.revision')}" if="${environment::variable-exists('uc.app.revision')}" />
118
+ <property name="version.revision" value="${environment::get-variable('BUILD_VCS_NUMBER')}" if="${version.revision == '0' and environment::variable-exists('BUILD_VCS_NUMBER')}" />
119
+ <property name="version.hash" value="${environment::get-variable('uc.app.revision.hash')}" if="${environment::variable-exists('uc.app.revision.hash')}" />
120
+ <property name="version.hash" value="${version.revision}" if="${version.hash == '0'}" />
121
+ <echo message="Using revision number: ${version.revision} and hash: ${version.hash}." />
122
+ </target>
123
+
124
+ <target name="shorten_hash">
125
+ <echo message="Shortening the length of the version hash '${version.hash}' to 8 digits." />
126
+ <property name="version.hash" value="${string::substring(version.hash,0,8)}" if="${string::get-length(version.hash) > 8}" />
127
+ <echo message="The hash is now: ${version.hash}." />
128
+ </target>
129
+
130
+ <target name="get_build_number">
131
+ <property name="version.build" value="${environment::get-variable('CCNetNumericLabel')}" if="${environment::variable-exists('CCNetNumericLabel')}" />
132
+ <property name="version.build" value="${environment::get-variable('BUILD_NUMBER')}" if="${environment::variable-exists('BUILD_NUMBER')}" />
133
+ <echo message="Using build number ${version.build}." />
134
+ </target>
135
+
104
136
  <target name="rename_zip_folder">
105
137
  <echo message="Renaming zip file ${zip.file} to ${zip.file.rename}." />
106
138
  <move file="${zip.file}" tofile="${zip.file.rename}" />
@@ -37,6 +37,7 @@
37
37
  <property name="path.separator" value="${string::trim(path::combine(' ', ' '))}" />
38
38
 
39
39
  <!-- ASSEMBLY VARIABLES -->
40
+ <property name="version.use_semanticversioning" value="true" overwrite="false" />
40
41
  <property name="version.major" value="0" overwrite="false" />
41
42
  <property name="version.minor" value="0" overwrite="false" />
42
43
  <property name="version.patch" value="0" overwrite="false" />
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uppercutbuild
3
3
  version: !ruby/object:Gem::Version
4
- hash: 40201491
4
+ hash: 40201477
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
+ - 1
9
10
  - 0
10
- - 0
11
- - 20100806
12
- version: 1.0.0.0.20100806
11
+ - 20100809
12
+ version: 1.0.1.0.20100809
13
13
  platform: ruby
14
14
  authors:
15
15
  - Rob "FerventCoder" Reynolds
@@ -18,7 +18,7 @@ autorequire:
18
18
  bindir: bin
19
19
  cert_chain: []
20
20
 
21
- date: 2010-08-06 00:00:00 -05:00
21
+ date: 2010-08-09 00:00:00 -05:00
22
22
  default_executable:
23
23
  dependencies:
24
24
  - !ruby/object:Gem::Dependency
@@ -66,6 +66,7 @@ files:
66
66
  - lib/build/Castle.MicroKernel.dll
67
67
  - lib/build/Castle.Windsor.dll
68
68
  - lib/build/compile.step
69
+ - lib/build/csharp.functions
69
70
  - lib/build/customize.bat
70
71
  - lib/build/customize.build
71
72
  - lib/build/customizers/item.template