albacore 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.autotest +4 -4
- data/.bundle/config +2 -2
- data/.rvmrc +1 -1
- data/Gemfile +12 -12
- data/README.markdown +92 -68
- data/VERSION +1 -1
- data/lib/albacore.rb +9 -9
- data/lib/albacore/albacoretask.rb +50 -50
- data/lib/albacore/aspnetcompiler.rb +58 -58
- data/lib/albacore/assemblyinfo.rb +140 -140
- data/lib/albacore/assemblyinfolanguages/cppcliengine.rb +17 -0
- data/lib/albacore/assemblyinfolanguages/csharpengine.rb +18 -18
- data/lib/albacore/assemblyinfolanguages/vbnetengine.rb +18 -18
- data/lib/albacore/config/aspnetcompilerconfig.rb +29 -29
- data/lib/albacore/config/assemblyinfoconfig.rb +13 -13
- data/lib/albacore/config/config.rb +22 -22
- data/lib/albacore/config/cscconfig.rb +28 -28
- data/lib/albacore/config/docuconfig.rb +23 -23
- data/lib/albacore/config/execconfig.rb +15 -15
- data/lib/albacore/config/fluentmigratorrunnerconfig.rb +15 -15
- data/lib/albacore/config/msbuildconfig.rb +29 -29
- data/lib/albacore/config/mspectestrunnerconfig.rb +15 -15
- data/lib/albacore/config/mstesttestrunnerconfig.rb +15 -15
- data/lib/albacore/config/nantconfig.rb +15 -15
- data/lib/albacore/config/nchurnconfig.rb +15 -15
- data/lib/albacore/config/ncoverconsoleconfig.rb +15 -15
- data/lib/albacore/config/ncoverreportconfig.rb +15 -15
- data/lib/albacore/config/ndependconfig.rb +15 -15
- data/lib/albacore/config/netversion.rb +21 -21
- data/lib/albacore/config/nugetpackconfig.rb +3 -3
- data/lib/albacore/config/nugetpublishconfig.rb +19 -0
- data/lib/albacore/config/nugetpushconfig.rb +19 -0
- data/lib/albacore/config/nunittestrunnerconfig.rb +14 -14
- data/lib/albacore/config/specflowreportconfig.rb +24 -24
- data/lib/albacore/config/sqlcmdconfig.rb +15 -15
- data/lib/albacore/config/unzipconfig.rb +15 -15
- data/lib/albacore/config/vssgetconfig.rb +14 -0
- data/lib/albacore/config/xbuildconfig.rb +15 -15
- data/lib/albacore/config/xunittestrunnerconfig.rb +15 -15
- data/lib/albacore/config/zipdirectoryconfig.rb +15 -15
- data/lib/albacore/csc.rb +66 -62
- data/lib/albacore/docu.rb +41 -41
- data/lib/albacore/exec.rb +18 -18
- data/lib/albacore/fluentmigratorrunner.rb +51 -46
- data/lib/albacore/msbuild.rb +55 -55
- data/lib/albacore/mspectestrunner.rb +50 -50
- data/lib/albacore/mstesttestrunner.rb +43 -43
- data/lib/albacore/nant.rb +38 -38
- data/lib/albacore/nchurn.rb +74 -74
- data/lib/albacore/ncoverconsole.rb +68 -68
- data/lib/albacore/ncoverreport.rb +62 -62
- data/lib/albacore/ncoverreports/assemblyfilter.rb +9 -9
- data/lib/albacore/ncoverreports/branchcoverage.rb +9 -9
- data/lib/albacore/ncoverreports/classfilter.rb +9 -9
- data/lib/albacore/ncoverreports/codecoveragebase.rb +25 -25
- data/lib/albacore/ncoverreports/cyclomaticcomplexity.rb +23 -23
- data/lib/albacore/ncoverreports/documentfilter.rb +9 -9
- data/lib/albacore/ncoverreports/fullcoveragereport.rb +13 -13
- data/lib/albacore/ncoverreports/methodcoverage.rb +9 -9
- data/lib/albacore/ncoverreports/methodfilter.rb +9 -9
- data/lib/albacore/ncoverreports/namespacefilter.rb +9 -9
- data/lib/albacore/ncoverreports/reportfilterbase.rb +26 -26
- data/lib/albacore/ncoverreports/summaryreport.rb +18 -18
- data/lib/albacore/ncoverreports/symbolcoverage.rb +9 -9
- data/lib/albacore/ndepend.rb +33 -33
- data/lib/albacore/nugetpublish.rb +47 -0
- data/lib/albacore/nugetpush.rb +46 -0
- data/lib/albacore/nunittestrunner.rb +41 -41
- data/lib/albacore/nuspec.rb +133 -109
- data/lib/albacore/output.rb +99 -99
- data/lib/albacore/plink.rb +47 -47
- data/lib/albacore/specflowreport.rb +62 -62
- data/lib/albacore/sqlcmd.rb +80 -80
- data/lib/albacore/support/attrmethods.rb +33 -33
- data/lib/albacore/support/createtask.rb +50 -30
- data/lib/albacore/support/failure.rb +15 -15
- data/lib/albacore/support/logging.rb +38 -38
- data/lib/albacore/support/openstruct.rb +13 -13
- data/lib/albacore/support/runcommand.rb +45 -45
- data/lib/albacore/support/supportlinux.rb +23 -23
- data/lib/albacore/support/updateattributes.rb +13 -13
- data/lib/albacore/support/yamlconfig.rb +18 -18
- data/lib/albacore/unzip.rb +28 -28
- data/lib/albacore/vssget.rb +44 -0
- data/lib/albacore/xbuild.rb +54 -54
- data/lib/albacore/xunittestrunner.rb +52 -52
- data/lib/albacore/zipdirectory.rb +105 -105
- data/rakefile.rb +297 -297
- data/spec/albacoremodel_spec.rb +53 -53
- data/spec/assemblyinfo_spec.rb +541 -541
- data/spec/attrmethods_spec.rb +136 -136
- data/spec/config_spec.rb +34 -34
- data/spec/createtask_spec.rb +236 -236
- data/spec/csc_spec.rb +253 -253
- data/spec/docu_spec.rb +109 -109
- data/spec/exec_spec.rb +45 -45
- data/spec/fluentmigratorrunner_spec.rb +254 -185
- data/spec/msbuild_spec.rb +215 -215
- data/spec/mspec_spec.rb +28 -28
- data/spec/mstesttestrunner_spec.rb +142 -142
- data/spec/nant_spec.rb +110 -110
- data/spec/nchurn_spec.rb +75 -75
- data/spec/ncoverconsole_spec.rb +353 -353
- data/spec/ncoverreport_spec.rb +619 -619
- data/spec/ndepend_spec.rb +72 -72
- data/spec/nunittestrunner_spec.rb +122 -122
- data/spec/nuspec_spec.rb +78 -78
- data/spec/patches/docu_patch.rb +12 -12
- data/spec/patches/fail_patch.rb +8 -8
- data/spec/patches/system_patch.rb +20 -20
- data/spec/plink_spec.rb +62 -62
- data/spec/runcommand_spec.rb +94 -94
- data/spec/spec_helper.rb +17 -17
- data/spec/specflowreport_spec.rb +146 -146
- data/spec/sqlcmd_spec.rb +334 -334
- data/spec/support/assemblyinfotester.rb +51 -51
- data/spec/support/ironruby_validator.rb +26 -26
- data/spec/support/msbuildtestdata.rb +32 -32
- data/spec/support/nanttestdata.rb +33 -33
- data/spec/support/ncoverconsoletestdata.rb +19 -19
- data/spec/support/ncoverreporttestdata.rb +26 -26
- data/spec/support/nokogiri_validator.rb +15 -15
- data/spec/support/outputtestdata.rb +12 -12
- data/spec/support/ziptestdata.rb +12 -12
- data/spec/unzip_spec.rb +15 -15
- data/spec/xbuild_spec.rb +15 -15
- data/spec/xunit_spec.rb +168 -168
- data/spec/yamlconfig_spec.rb +49 -49
- data/spec/zip_spec.rb +104 -104
- data/watchrtesting.rb +8 -8
- metadata +15 -119
@@ -0,0 +1,17 @@
|
|
1
|
+
class CppCliEngine
|
2
|
+
def build_attribute_re(attr_name)
|
3
|
+
/^\[assembly: #{attr_name}(.+)/
|
4
|
+
end
|
5
|
+
|
6
|
+
def build_attribute(attr_name, attr_data)
|
7
|
+
attribute = "[assembly: #{attr_name}("
|
8
|
+
attribute << "#{attr_data.inspect}" if attr_data != nil
|
9
|
+
attribute << ")]"
|
10
|
+
|
11
|
+
attribute
|
12
|
+
end
|
13
|
+
|
14
|
+
def build_using_statement(namespace)
|
15
|
+
"using namespace #{namespace.gsub(/\./, '::')};"
|
16
|
+
end
|
17
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class CSharpEngine
|
2
|
-
def build_attribute_re(attr_name)
|
3
|
-
/^\[assembly: #{attr_name}(.+)/
|
4
|
-
end
|
5
|
-
|
6
|
-
def build_attribute(attr_name, attr_data)
|
7
|
-
attribute = "[assembly: #{attr_name}("
|
8
|
-
attribute << "#{attr_data.inspect}" if attr_data != nil
|
9
|
-
attribute << ")]"
|
10
|
-
|
11
|
-
attribute
|
12
|
-
end
|
13
|
-
|
14
|
-
def build_using_statement(namespace)
|
15
|
-
"using #{namespace};"
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
1
|
+
class CSharpEngine
|
2
|
+
def build_attribute_re(attr_name)
|
3
|
+
/^\[assembly: #{attr_name}(.+)/
|
4
|
+
end
|
5
|
+
|
6
|
+
def build_attribute(attr_name, attr_data)
|
7
|
+
attribute = "[assembly: #{attr_name}("
|
8
|
+
attribute << "#{attr_data.inspect}" if attr_data != nil
|
9
|
+
attribute << ")]"
|
10
|
+
|
11
|
+
attribute
|
12
|
+
end
|
13
|
+
|
14
|
+
def build_using_statement(namespace)
|
15
|
+
"using #{namespace};"
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
@@ -1,18 +1,18 @@
|
|
1
|
-
class VbNetEngine
|
2
|
-
def build_attribute_re(attr_name)
|
3
|
-
/^\<assembly: #{attr_name}(.+)/
|
4
|
-
end
|
5
|
-
|
6
|
-
def build_attribute(attr_name, attr_data)
|
7
|
-
attribute = "<assembly: #{attr_name}("
|
8
|
-
attribute << "#{attr_data.inspect}" if attr_data != nil
|
9
|
-
attribute << ")>"
|
10
|
-
|
11
|
-
attribute
|
12
|
-
end
|
13
|
-
|
14
|
-
def build_using_statement(namespace)
|
15
|
-
"Imports #{namespace}"
|
16
|
-
end
|
17
|
-
|
18
|
-
end
|
1
|
+
class VbNetEngine
|
2
|
+
def build_attribute_re(attr_name)
|
3
|
+
/^\<assembly: #{attr_name}(.+)/
|
4
|
+
end
|
5
|
+
|
6
|
+
def build_attribute(attr_name, attr_data)
|
7
|
+
attribute = "<assembly: #{attr_name}("
|
8
|
+
attribute << "#{attr_data.inspect}" if attr_data != nil
|
9
|
+
attribute << ")>"
|
10
|
+
|
11
|
+
attribute
|
12
|
+
end
|
13
|
+
|
14
|
+
def build_using_statement(namespace)
|
15
|
+
"Imports #{namespace}"
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
@@ -1,29 +1,29 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/config/netversion'
|
3
|
-
require 'albacore/support/openstruct'
|
4
|
-
|
5
|
-
module Configuration
|
6
|
-
module AspNetCompiler
|
7
|
-
include Configuration::NetVersion
|
8
|
-
include Albacore::Configuration
|
9
|
-
|
10
|
-
def self.aspnetcompilerconfig
|
11
|
-
@config ||= OpenStruct.new.extend(OpenStructToHash).extend(AspNetCompiler)
|
12
|
-
end
|
13
|
-
|
14
|
-
def aspnetcompiler
|
15
|
-
|
16
|
-
yield(
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.included(mod)
|
21
|
-
self.aspnetcompilerconfig.use :net40
|
22
|
-
end
|
23
|
-
|
24
|
-
def use(netversion)
|
25
|
-
netversion = :net20 if netversion == :net35 # since .net 3.5 doesn't have aspnet_compiler use .net 2.0
|
26
|
-
self.command = File.join(get_net_version(netversion), "aspnet_compiler.exe")
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/config/netversion'
|
3
|
+
require 'albacore/support/openstruct'
|
4
|
+
|
5
|
+
module Configuration
|
6
|
+
module AspNetCompiler
|
7
|
+
include Configuration::NetVersion
|
8
|
+
include Albacore::Configuration
|
9
|
+
|
10
|
+
def self.aspnetcompilerconfig
|
11
|
+
@config ||= OpenStruct.new.extend(OpenStructToHash).extend(AspNetCompiler)
|
12
|
+
end
|
13
|
+
|
14
|
+
def aspnetcompiler
|
15
|
+
config ||= AspNetCompiler.aspnetcompilerconfig
|
16
|
+
yield(config) if block_given?
|
17
|
+
config
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.included(mod)
|
21
|
+
self.aspnetcompilerconfig.use :net40
|
22
|
+
end
|
23
|
+
|
24
|
+
def use(netversion)
|
25
|
+
netversion = :net20 if netversion == :net35 # since .net 3.5 doesn't have aspnet_compiler use .net 2.0
|
26
|
+
self.command = File.join(get_net_version(netversion), "aspnet_compiler.exe")
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
@@ -1,13 +1,13 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/support/openstruct'
|
3
|
-
|
4
|
-
module Configuration
|
5
|
-
module AssemblyInfo
|
6
|
-
include Albacore::Configuration
|
7
|
-
def assemblyinfo
|
8
|
-
@asmconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
9
|
-
yield(@asmconfig) if block_given?
|
10
|
-
@asmconfig
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module AssemblyInfo
|
6
|
+
include Albacore::Configuration
|
7
|
+
def assemblyinfo
|
8
|
+
@asmconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
9
|
+
yield(@asmconfig) if block_given?
|
10
|
+
@asmconfig
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -1,22 +1,22 @@
|
|
1
|
-
module Albacore
|
2
|
-
module Configuration
|
3
|
-
def self.included(base)
|
4
|
-
Albacore.configuration.extend(base) if (base.class == Module)
|
5
|
-
end
|
6
|
-
end
|
7
|
-
|
8
|
-
class ConfigData
|
9
|
-
attr_accessor :yaml_config_folder, :log_level
|
10
|
-
end
|
11
|
-
|
12
|
-
class << self
|
13
|
-
def configure
|
14
|
-
yield(configuration) if block_given?
|
15
|
-
configuration
|
16
|
-
end
|
17
|
-
|
18
|
-
def configuration
|
19
|
-
@configuration ||= ConfigData.new
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
1
|
+
module Albacore
|
2
|
+
module Configuration
|
3
|
+
def self.included(base)
|
4
|
+
Albacore.configuration.extend(base) if (base.class == Module)
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
class ConfigData
|
9
|
+
attr_accessor :yaml_config_folder, :log_level
|
10
|
+
end
|
11
|
+
|
12
|
+
class << self
|
13
|
+
def configure
|
14
|
+
yield(configuration) if block_given?
|
15
|
+
configuration
|
16
|
+
end
|
17
|
+
|
18
|
+
def configuration
|
19
|
+
@configuration ||= ConfigData.new
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -1,28 +1,28 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/config/netversion'
|
3
|
-
require 'albacore/support/openstruct'
|
4
|
-
|
5
|
-
module Configuration
|
6
|
-
module CSC
|
7
|
-
include Configuration::NetVersion
|
8
|
-
include Albacore::Configuration
|
9
|
-
|
10
|
-
def self.cscconfig
|
11
|
-
@config ||= OpenStruct.new.extend(OpenStructToHash).extend(CSC)
|
12
|
-
end
|
13
|
-
|
14
|
-
def csc
|
15
|
-
|
16
|
-
yield(
|
17
|
-
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.included(mod)
|
21
|
-
self.cscconfig.use :net40
|
22
|
-
end
|
23
|
-
|
24
|
-
def use(netversion)
|
25
|
-
self.command = File.join(get_net_version(netversion), "csc.exe")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/config/netversion'
|
3
|
+
require 'albacore/support/openstruct'
|
4
|
+
|
5
|
+
module Configuration
|
6
|
+
module CSC
|
7
|
+
include Configuration::NetVersion
|
8
|
+
include Albacore::Configuration
|
9
|
+
|
10
|
+
def self.cscconfig
|
11
|
+
@config ||= OpenStruct.new.extend(OpenStructToHash).extend(CSC)
|
12
|
+
end
|
13
|
+
|
14
|
+
def csc
|
15
|
+
config ||= CSC.cscconfig
|
16
|
+
yield(config) if block_given?
|
17
|
+
config
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.included(mod)
|
21
|
+
self.cscconfig.use :net40
|
22
|
+
end
|
23
|
+
|
24
|
+
def use(netversion)
|
25
|
+
self.command = File.join(get_net_version(netversion), "csc.exe")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -1,23 +1,23 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/support/openstruct'
|
3
|
-
|
4
|
-
module Configuration
|
5
|
-
module Docu
|
6
|
-
include Albacore::Configuration
|
7
|
-
|
8
|
-
def self.docuconfig
|
9
|
-
@docuconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
-
end
|
11
|
-
|
12
|
-
def docu
|
13
|
-
config = Docu.docuconfig
|
14
|
-
yield(config) if block_given?
|
15
|
-
config
|
16
|
-
end
|
17
|
-
|
18
|
-
def self.included(obj)
|
19
|
-
docuconfig.command = "Docu.exe"
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module Docu
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def self.docuconfig
|
9
|
+
@docuconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
end
|
11
|
+
|
12
|
+
def docu
|
13
|
+
config = Docu.docuconfig
|
14
|
+
yield(config) if block_given?
|
15
|
+
config
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.included(obj)
|
19
|
+
docuconfig.command = "Docu.exe"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
@@ -1,15 +1,15 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/support/openstruct'
|
3
|
-
|
4
|
-
module Configuration
|
5
|
-
module Exec
|
6
|
-
include Albacore::Configuration
|
7
|
-
|
8
|
-
def exec
|
9
|
-
@execconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
-
yield(@execconfig) if block_given?
|
11
|
-
@execconfig
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/support/openstruct'
|
3
|
+
|
4
|
+
module Configuration
|
5
|
+
module Exec
|
6
|
+
include Albacore::Configuration
|
7
|
+
|
8
|
+
def exec
|
9
|
+
@execconfig ||= OpenStruct.new.extend(OpenStructToHash)
|
10
|
+
yield(@execconfig) if block_given?
|
11
|
+
@execconfig
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
@@ -1,15 +1,15 @@
|
|
1
|
-
require 'albacore/support/openstruct'
|
2
|
-
|
3
|
-
module Configuration
|
4
|
-
module FluentMigrator
|
5
|
-
include Albacore::Configuration
|
6
|
-
|
7
|
-
def fluentmigrator
|
8
|
-
@fluentmigratorconfig ||= OpenStruct.new.extend(OpenStructToHash).extend(FluentMigrator)
|
9
|
-
yield(@fluentmigratorconfig) if block_given?
|
10
|
-
@fluentmigratorconfig
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
|
1
|
+
require 'albacore/support/openstruct'
|
2
|
+
|
3
|
+
module Configuration
|
4
|
+
module FluentMigrator
|
5
|
+
include Albacore::Configuration
|
6
|
+
|
7
|
+
def fluentmigrator
|
8
|
+
@fluentmigratorconfig ||= OpenStruct.new.extend(OpenStructToHash).extend(FluentMigrator)
|
9
|
+
yield(@fluentmigratorconfig) if block_given?
|
10
|
+
@fluentmigratorconfig
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
|
@@ -1,29 +1,29 @@
|
|
1
|
-
require 'ostruct'
|
2
|
-
require 'albacore/config/netversion'
|
3
|
-
require 'albacore/support/openstruct'
|
4
|
-
|
5
|
-
module Configuration
|
6
|
-
module MSBuild
|
7
|
-
include Albacore::Configuration
|
8
|
-
include Configuration::NetVersion
|
9
|
-
|
10
|
-
def self.msbuildconfig
|
11
|
-
@msbuildconfig ||= OpenStruct.new.extend(OpenStructToHash).extend(MSBuild)
|
12
|
-
end
|
13
|
-
|
14
|
-
def msbuild
|
15
|
-
config = MSBuild.msbuildconfig
|
16
|
-
yield(config) if block_given?
|
17
|
-
config
|
18
|
-
end
|
19
|
-
|
20
|
-
def self.included(mod)
|
21
|
-
self.msbuildconfig.use :net40
|
22
|
-
end
|
23
|
-
|
24
|
-
def use(netversion)
|
25
|
-
self.command = File.join(get_net_version(netversion), "MSBuild.exe")
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
1
|
+
require 'ostruct'
|
2
|
+
require 'albacore/config/netversion'
|
3
|
+
require 'albacore/support/openstruct'
|
4
|
+
|
5
|
+
module Configuration
|
6
|
+
module MSBuild
|
7
|
+
include Albacore::Configuration
|
8
|
+
include Configuration::NetVersion
|
9
|
+
|
10
|
+
def self.msbuildconfig
|
11
|
+
@msbuildconfig ||= OpenStruct.new.extend(OpenStructToHash).extend(MSBuild)
|
12
|
+
end
|
13
|
+
|
14
|
+
def msbuild
|
15
|
+
config = MSBuild.msbuildconfig
|
16
|
+
yield(config) if block_given?
|
17
|
+
config
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.included(mod)
|
21
|
+
self.msbuildconfig.use :net40
|
22
|
+
end
|
23
|
+
|
24
|
+
def use(netversion)
|
25
|
+
self.command = File.join(get_net_version(netversion), "MSBuild.exe")
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|