rake-dotnet 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.txt +5 -0
  2. data/Rakefile.rb +1 -1
  3. data/lib/rake_dotnet.rb +4 -3
  4. metadata +2 -2
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ === 0.1.9 / 2009-07-07
2
+
3
+ NEW: MsBuild: Can now take arbitrary properties list
4
+ NEW: MsBuild: Default to treating warnings as errors, as stringently as possible
5
+
1
6
  === 0.1.8 / 2009-06-30
2
7
 
3
8
  FIX: When TeamCity build-configs are out-of-sync, number-wise, we cannot rely on RDNVERSION to be a sensible default.
data/Rakefile.rb CHANGED
@@ -5,7 +5,7 @@ require 'hoe'
5
5
  require 'Pathname'
6
6
  require 'rake/clean'
7
7
 
8
- Hoe.new('rake-dotnet', '0.1.8') do |p|
8
+ Hoe.new('rake-dotnet', '0.1.9') do |p|
9
9
  p.author = 'Peter Mounce'
10
10
  p.description = 'Making a .NET build-automation dev\'s life easier, one angle-bracket at a time'
11
11
  p.email = 'pete@neverrunwithscissors.com'
data/lib/rake_dotnet.rb CHANGED
@@ -463,6 +463,7 @@ module Rake
463
463
  @working_dir = params[:working_dir] || '.'
464
464
  @deps = params[:deps] || []
465
465
  @buildable_projects = ['.csproj','.vbproj','.wixproj']
466
+ @properties = {:Configuration => @configuration, :TreatWarningsAsErrors => true, :WarningLevel => 4, :BuildInParallel => true}.merge(params[:properties] || {})
466
467
 
467
468
  yield self if block_given?
468
469
  define
@@ -474,7 +475,7 @@ module Rake
474
475
  pn = Pathname.new(r.name)
475
476
  name = pn.basename.to_s.sub('.dll', '')
476
477
  project = FileList.new("#{@src_dir}/#{name}/#{name}.*proj").first
477
- mb = MsBuild.new(project, {:Configuration => @configuration}, ['Build'], verbosity, @working_dir)
478
+ mb = MsBuild.new(project, @properties, ['Build'], verbosity, @working_dir)
478
479
  mb.run
479
480
  end
480
481
 
@@ -483,7 +484,7 @@ module Rake
483
484
  pn = Pathname.new(r.name)
484
485
  name = pn.basename.to_s.sub('.dll', '')
485
486
  project = FileList.new("#{@src_dir}/#{name}/#{name}.*proj").first
486
- mb = MsBuild.new(project, {:Configuration => @configuration}, ['Build'], verbosity, @working_dir)
487
+ mb = MsBuild.new(project, @properties, ['Build'], verbosity, @working_dir)
487
488
  mb.run
488
489
  end
489
490
 
@@ -529,7 +530,7 @@ class MsBuild
529
530
  end
530
531
 
531
532
  def cmd
532
- "#{@exe} #{project} /maxcpucount /v:#{@verbosity} /property:BuildInParallel=true /p:#{properties} /t:#{targets}"
533
+ "#{@exe} #{project} /maxcpucount /v:#{@verbosity} /p:#{properties} /t:#{targets}"
533
534
  end
534
535
 
535
536
  def run
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-dotnet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter MouncePeter Mounce
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-30 00:00:00 +01:00
12
+ date: 2009-07-07 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency