uppercutbuild 0.9.0.334 → 0.9.0.337

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,7 +21,20 @@ module Uppercutbuild
21
21
  loc = cl unless cl.nil?
22
22
 
23
23
  Uppercutbuild::Loader.load
24
-
24
+ puts "UppercuT has been added to this project. Please look through the lib directory for items you don't need. NAnt is still required at the current time."
25
+ end
26
+
27
+ desc "upgrade", "upgrades the uppercut 'build' directory"
28
+ method_options :location => :string
29
+ def upgrade(*names)
30
+ #@proj.ensure_default_config
31
+
32
+ loc = @proj.get_location
33
+ cl = options['location']
34
+ loc = cl unless cl.nil?
35
+
36
+ Uppercutbuild::Loader.upgrade
37
+ puts "The build folder has been updated. Please check the release logs for items outside of this folder that may need to be updated."
25
38
  end
26
39
 
27
40
  def self.source_root
@@ -12,6 +12,20 @@ module Uppercutbuild
12
12
  to = get_copy_to()
13
13
  puts "Copy To: #{to}"
14
14
 
15
+ FileUtils.copy_entry start_here, to
16
+ end
17
+
18
+ def self.upgrade()
19
+ @gem_to_copy = 'uppercutbuild'
20
+
21
+ start_here = get_copy_from()
22
+ start_here = File.join(start_here,"build")
23
+ puts "Copy From: #{start_here}"
24
+
25
+ to = get_copy_to()
26
+ to = File.join(to,"build")
27
+ puts "Copy To: #{to}"
28
+
15
29
  FileUtils.copy_entry start_here, to
16
30
  end
17
31
 
@@ -33,7 +33,7 @@ UppercuT is not a build server, but it integrates nicely with CruiseControl.NET,
33
33
  If you have Ruby 1.8.6+ (and Gems 1.3.7+) installed, you can get the current release of UppercuT to your machine the fastest!
34
34
 
35
35
  1. Type 'gem install uppercutbuild'
36
- 2. At the top level directory (trunk or branch name) type 'uppercutbuild install'
36
+ 2. At the top level directory (trunk or branch name) type 'uppercutbuild install' 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
37
 
38
38
  ### Source
39
39
  This is the best way to get to the bleeding edge of what we are doing.
@@ -55,7 +55,9 @@ 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
- =0.9.0.334=
58
+ =0.9.0.337=
59
+ * ILMerge is now a step of the build process. Please check the configuration for the new setting. (r337)
60
+ * UppercuT now has the command 'uppercutbuild upgrade'. (r336)
59
61
  * Zip will not include the gems folder. (r334)
60
62
  * UppercuT (through gems) can copy UppercuT to a solution directory by issuing 'uppercutbuild install' at the top level directory (trunk or branch name). (r333)
61
63
 
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" ?>
2
2
  <uppercut>
3
- <version>0.9.0.334</version>
3
+ <version>0.9.0.337</version>
4
4
  </uppercut>
5
5
 
@@ -23,6 +23,7 @@
23
23
  <property name="version.hash" value="${version.revision}" overwrite="false" />
24
24
  <property name="version.build" value="0" />
25
25
  <property name="allow.powershell.unrestricted" value="false" overwrite="false" />
26
+ <property name="run.ilmerge" value="false" overwrite="false" />
26
27
  <property name="file.uppercut.assembly" value="uppercut.tasks.dll" />
27
28
  <property name="path.uppercut.assembly" value="${dirs.current}\${file.uppercut.assembly}" />
28
29
  <property name="file.custom.step.before" value="${dirs.build_scripts_custom}\${file.current.no_extension}.pre.build" />
@@ -94,6 +95,7 @@
94
95
  <nant buildfile="${dirs.current}\environmentBuilder.step" inheritall="true" />
95
96
  <nant buildfile="${dirs.current}\analyze.step" inheritall="true" />
96
97
  <nant buildfile="${dirs.current}\package.step" inheritall="true" />
98
+ <nant buildfile="${dirs.current}\ilmerge.build" inheritall="true" if="${run.ilmerge}" />
97
99
  <nant buildfile="${dirs.current}\gemsPrepare.step" inheritall="true" />
98
100
  <nant buildfile="${dirs.current}\gemsBuild.step" inheritall="true" />
99
101
  </target>
@@ -22,9 +22,9 @@
22
22
 
23
23
  <property name="dirs.merge.from" value="${dirs.drop}\${folder.app.drop}" overwrite="false" />
24
24
  <property name="dirs.merge.to" value="${dirs.drop}\merge" overwrite="false" />
25
+
25
26
  <property name="file.internalize.ignore" value="ilmerge.internalize.ignore.txt" />
26
27
  <property name="path.file.internalize.ignore" value="${dirs.build_scripts_custom}\${file.internalize.ignore}" />
27
-
28
28
  <property name="file.merge.name" value="__REPLACE__" overwrite="false" />
29
29
  <!-- exe winexe dll -->
30
30
  <property name="merge.target.type" value="__REPLACE__" overwrite="false" />
@@ -50,7 +50,7 @@
50
50
  </target>
51
51
 
52
52
  <target name="run_normal_tasks"
53
- depends="error_check, get_regular_dlls, run_ilmerge, copy_configs, remove_unneeded_assemblies, copy_from_merge, delete_merge_folder"
53
+ depends="set_environment_variables, error_check, get_regular_dlls, run_ilmerge, copy_configs, remove_unneeded_assemblies, copy_from_merge, delete_merge_folder"
54
54
  description="Running ILMerge with UppercuT default.build." />
55
55
 
56
56
  <target name="custom_tasks_before">
@@ -78,8 +78,17 @@
78
78
  </exec>
79
79
  </target>
80
80
 
81
+ <target name="set_environment_variables">
82
+ <property name="dirs.merge.from" value="${environment::get-variable('uc.dirs.merge.from')}" if="${environment::variable-exists('uc.dirs.merge.from')}" />
83
+ <property name="dirs.merge.to" value="${environment::get-variable('uc.dirs.merge.to')}" if="${environment::variable-exists('uc.dirs.merge.to')}" />
84
+ <property name="file.merge.name" value="${environment::get-variable('uc.file.merge.name')}" if="${environment::variable-exists('uc.file.merge.name')}" />
85
+ <property name="merge.target.type" value="${environment::get-variable('uc.merge.target.type')}" if="${environment::variable-exists('uc.merge.target.type')}" />
86
+ <property name="args.ilmerge" value="/internalize /target:${merge.target.type} /out:${dirs.merge.to}\${file.merge.name} /log:${dirs.merge.log}\${log.merge} /ndebug /allowDup ${file.merge.name} " />
87
+ <property name="args.ilmerge" value="/internalize:${path.file.internalize.ignore} /target:${merge.target.type} /out:${dirs.merge.to}\${file.merge.name} /log:${dirs.merge.log}\${log.merge} /ndebug /allowDup ${file.merge.name} " if="${file::exists(path.file.internalize.ignore)}"/>
88
+ </target>
89
+
81
90
  <target name="error_check">
82
- <fail message="You must pass in the file.merge.name and the merge.target.type through the command line calling this build. Please do that and retry the build."
91
+ <fail message="You must pass in the file.merge.name and the merge.target.type through the command line calling this build. Please do that and retry the build. You can also set up an ilmerge.pre.build and set these environment variables: uc.dirs.merge.from, uc.dirs.merge.to, uc.file.merge.name, and uc.merge.target.type"
83
92
  if="${file.merge.name=='__REPLACE__' or merge.target.type=='__REPLACE__'}" />
84
93
  </target>
85
94
 
Binary file
Binary file
@@ -69,5 +69,6 @@
69
69
  <property name="app.moma" value="..\..\${folder.references}\MoMA\MoMA.exe" overwrite="false" />
70
70
  <property name="app.nitriq" value="C:\Program Files (x86)\NimblePros\Nitriq Console + Pro\Nitriq.Console.exe" overwrite="false" />
71
71
  <property name="allow.powershell.unrestricted" value="false" overwrite="false" />
72
+ <property name="run.ilmerge" value="false" overwrite="false" />
72
73
 
73
74
  </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: 667
4
+ hash: 677
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
9
  - 0
10
- - 334
11
- version: 0.9.0.334
10
+ - 337
11
+ version: 0.9.0.337
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: 2010-07-18 00:00:00 -05:00
20
+ date: 2010-07-19 00:00:00 -05:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency