dev_tasks 0.0.141 → 0.0.142
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/add.rb +1 -1
- data/lib/build.rb +21 -21
- data/lib/commands.rb +1 -0
- data/lib/commit.rb +1 -1
- data/lib/console.rb +4 -0
- data/lib/dev_tasks.rb +25 -14
- data/lib/msbuild.rb +1 -1
- data/lib/publish.rb +12 -13
- data/lib/spec.json +1 -1
- data/lib/test.rb +1 -1
- data/spec/dependencies_spec.rb +2 -2
- data/spec/dev_tasks_spec.rb +21 -4
- data/spec/msbuild_spec.rb +9 -0
- data/spec/test_data/cpp_projects/helloLib/rakefile.rb +1 -0
- data/spec/test_data/csharp_projects/helloDll/helloDll.Net2.0.csproj +54 -0
- data/spec/test_data/csharp_projects/helloDll/helloDll.Net3.5.csproj +54 -0
- data/spec/test_data/csharp_projects/helloDll/helloDll.Net4.0.csproj +54 -0
- data/spec/test_data/csharp_projects/helloDll/helloDll.Net4.5.csproj +56 -0
- data/spec/test_data/csharp_projects/helloDll/rakefile.rb +1 -0
- metadata +12 -5
- /data/lib/{artifacts.rb → artifacts.x.rb} +0 -0
- /data/spec/test_data/{csharp_project → csharp_projects}/JsonNet.Test.csproj +0 -0
- /data/spec/test_data/{csharp_project → csharp_projects}/JsonNet.csproj +0 -0
- /data/spec/test_data/{csharp_project → csharp_projects}/QcNet.csproj +0 -0
data/lib/add.rb
CHANGED
data/lib/build.rb
CHANGED
@@ -4,29 +4,29 @@ require_relative './msbuild.rb'
|
|
4
4
|
class Build < Array
|
5
5
|
|
6
6
|
def initialize
|
7
|
-
# Gem builds, `gem build dev_tasks.spec`
|
8
|
-
Dir.glob('*.gemspec') {|f|
|
9
|
-
self.add "gem build #{f}"
|
10
|
-
}
|
11
|
-
# .sln builds, `"C:\Program Files (x86)\MSBuild\12.0\bin\msbuild.exe" "MySolution.sln"
|
12
|
-
msbuild=MSBuild.new
|
13
|
-
Dir.glob('**/*.sln'){|f|
|
14
|
-
vs_version=MSBuild.get_vs_version(f)
|
15
|
-
if File.exist? msbuild[vs_version]
|
16
|
-
MSBuild.get_configurations(f).each{ |configuration|
|
17
|
-
MSBuild.get_platforms(f).each{|platform|
|
18
|
-
self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
|
19
|
-
}
|
20
|
-
#self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"Any CPU\""
|
21
|
-
}
|
22
|
-
#self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=Release /p:Platform=\"Any CPU\""
|
23
|
-
end
|
24
|
-
}
|
25
7
|
end
|
26
8
|
|
27
|
-
|
28
|
-
|
29
|
-
|
9
|
+
def update
|
10
|
+
if(defined?(DEV_TASKS))
|
11
|
+
msbuild=MSBuild.new
|
12
|
+
#glob='**/*.{gemspec,sln}'
|
13
|
+
#glob=DEV_TASKS[:build_glob] if(defined?(DEV_TASKS)) && DEV_TASKS.has_key?(:build_glob)
|
14
|
+
DEV_TASKS[:files][:build].each {|f|
|
15
|
+
self.add "gem build #{f}" if(f.include?('.gemspec'))
|
16
|
+
if(f.include?('.sln'))
|
17
|
+
vs_version=MSBuild.get_vs_version(f)
|
18
|
+
if File.exists? msbuild[vs_version]
|
19
|
+
MSBuild.get_configurations(f).each{ |configuration|
|
20
|
+
MSBuild.get_platforms(f).each{|platform|
|
21
|
+
Console.debug "configuration='#{configuration}', platform='#{platform}'"
|
22
|
+
self.add "\"#{msbuild[vs_version]}\" \"#{f}\" /nologo /p:Configuration=#{configuration} /p:Platform=\"#{platform}\""
|
23
|
+
}
|
24
|
+
}
|
25
|
+
end
|
26
|
+
end
|
27
|
+
}
|
28
|
+
end
|
29
|
+
end
|
30
30
|
|
31
31
|
def add command
|
32
32
|
self << command if(!include?(command))
|
data/lib/commands.rb
CHANGED
data/lib/commit.rb
CHANGED
@@ -2,7 +2,7 @@ require_relative('./environment.rb')
|
|
2
2
|
|
3
3
|
class Commit < Array
|
4
4
|
|
5
|
-
def
|
5
|
+
def update
|
6
6
|
if(Dir.exists?(".git"))
|
7
7
|
if(!`git status`.include?('nothing to commit') || `git status`.include?('untracked files present'))
|
8
8
|
if(File.exists?('commit.message') && File.read('commit.message').gsub(/\s+/, "").length > 0)
|
data/lib/console.rb
CHANGED
data/lib/dev_tasks.rb
CHANGED
@@ -6,15 +6,14 @@ include Rake::DSL
|
|
6
6
|
require_relative './environment.rb'
|
7
7
|
require_relative './commands.rb'
|
8
8
|
require_relative './dependencies.rb'
|
9
|
-
require_relative './artifacts.rb'
|
10
9
|
require_relative './console.rb'
|
11
10
|
require_relative './timer.rb'
|
12
11
|
require_relative './settings.rb'
|
13
12
|
require_relative './text.rb'
|
14
13
|
require_relative './svnexports.rb'
|
15
14
|
|
16
|
-
CLEAN.include('log','
|
17
|
-
CLOBBER.include('bin','obj','TestResults')
|
15
|
+
CLEAN.include('log','bin/**/*.pdb')
|
16
|
+
CLOBBER.include('bin','obj','TestResults','*.gem','bin/**/*.exe')
|
18
17
|
|
19
18
|
class DevTasks < Hash
|
20
19
|
|
@@ -27,8 +26,10 @@ class DevTasks < Hash
|
|
27
26
|
self[:scm]=Environment.scm
|
28
27
|
self[:scm_origin]=Environment.scm_origin
|
29
28
|
self[:branch]=Environment.branch
|
30
|
-
|
31
|
-
|
29
|
+
|
30
|
+
|
31
|
+
|
32
|
+
|
32
33
|
self[:command_order]=['pull','upgrade','setup','add','build','test','commit','push','verify','publish']
|
33
34
|
self[:relative_directory]=Environment.relative_directory
|
34
35
|
self[:working_directory]=Environment.working_directory
|
@@ -38,6 +39,13 @@ class DevTasks < Hash
|
|
38
39
|
self[:dev_root]=Environment.dev_root
|
39
40
|
self[:settings]=Settings.new
|
40
41
|
|
42
|
+
self[:files]=Hash.new
|
43
|
+
self[:files][:source]=Rake::FileList.new("**/{*.{rb,feature,spec,cs,c,m,cpp,cxx,h,hpp,i,jam,csproj,vcproj,snk,vcxproj,xcodeproj,plist,xib,sln,filters,xaml,resx,settings,config},Jamfile,.semver,Gemfile,README,LICENSE}")
|
44
|
+
self[:files][:build]=Rake::FileList.new('**/*.{gemspec,sln}')
|
45
|
+
self[:files][:artifact]=Rake::FileList.new("**/*.{gem,lib,exe,h,hpp}")
|
46
|
+
|
47
|
+
|
48
|
+
|
41
49
|
self[:commands]=Commands.new
|
42
50
|
update
|
43
51
|
end
|
@@ -50,14 +58,14 @@ class DevTasks < Hash
|
|
50
58
|
|
51
59
|
def update
|
52
60
|
self[:dependencies]=Dependencies.new if !has_key?(:dependencies)
|
53
|
-
self[:artifacts]=Artifacts.new if !has_key?(:artifacts)
|
54
|
-
self[:artifacts].update
|
55
61
|
allartifactsexist = true
|
56
|
-
self[:
|
57
|
-
|
62
|
+
self[:files][:artifact].each{|f| allartifactsexist=false if !File.exists?(f)}
|
63
|
+
|
64
|
+
self[:newest_source_file]=self[:files][:source].max_by {|f| File.mtime(f)}
|
65
|
+
self[:newest_artifact_file]=self[:files][:artifact].max_by { |f| File.mtime(f) } if allartifactsexist
|
58
66
|
|
59
67
|
self[:commands]=Commands.new if !has_key?(:commands)
|
60
|
-
self[:commands].update
|
68
|
+
#self[:commands].update
|
61
69
|
|
62
70
|
self[:up_to_date] = false
|
63
71
|
if(allartifactsexist && !self[:newest_artifact].nil? && !self[:newest_src_file].nil? && File.exists?(self[:newest_artifact]) && File.exists?(self[:newest_src_file]))
|
@@ -65,8 +73,8 @@ class DevTasks < Hash
|
|
65
73
|
self[:command_order]=['upgrade'] if(File.mtime(self[:newest_artifact]) > File.mtime(self[:newest_src_file]))
|
66
74
|
self[:up_to_date]=true
|
67
75
|
end
|
68
|
-
self[:
|
69
|
-
self[:
|
76
|
+
self[:newest_artifact_file_mtime]=File.mtime(self[:newest_artifact_file]).to_s
|
77
|
+
self[:newest_source_file_mtime]=File.mtime(self[:newest_source_file]).to_s
|
70
78
|
end
|
71
79
|
update_tasks
|
72
80
|
end
|
@@ -79,9 +87,11 @@ class DevTasks < Hash
|
|
79
87
|
sym_task = task.to_sym
|
80
88
|
timer=Timer.new
|
81
89
|
Console.announce_task_start task
|
90
|
+
#self[:commands][sym_task].update if self[:commands][sym_task].respond_to? update
|
82
91
|
if(!self[:commands].has_key?(sym_task))
|
83
92
|
puts "no commands discovered for task " + task
|
84
93
|
else
|
94
|
+
self[:commands][sym_task].update
|
85
95
|
self[:commands][sym_task].each {|c| self[:commands].execute_command(c) }
|
86
96
|
end
|
87
97
|
elapsed = timer.elapsed
|
@@ -101,10 +111,10 @@ class DevTasks < Hash
|
|
101
111
|
def update_tasks
|
102
112
|
dev_task_defaults=Array.new
|
103
113
|
self[:commands].each do |key,array|
|
104
|
-
if(array.length > 0)
|
114
|
+
#if(array.length > 0)
|
105
115
|
define_task key
|
106
116
|
dev_task_defaults << key
|
107
|
-
end
|
117
|
+
#end
|
108
118
|
end
|
109
119
|
end
|
110
120
|
|
@@ -128,6 +138,7 @@ class DevTasks < Hash
|
|
128
138
|
end
|
129
139
|
|
130
140
|
DEV_TASKS=DevTasks.new
|
141
|
+
DEV=DEV_TASKS
|
131
142
|
|
132
143
|
desc 'executes tasks in order of command_order, if they are defined'
|
133
144
|
task :dev_tasks_default do
|
data/lib/msbuild.rb
CHANGED
@@ -32,7 +32,7 @@ class MSBuild < Hash
|
|
32
32
|
def self.get_platforms(sln_filename)
|
33
33
|
platforms=Array.new
|
34
34
|
sln_text=File.read(sln_filename)
|
35
|
-
sln_text.scan(/= [\w]+\|([\w]+)/).each{|m|
|
35
|
+
sln_text.scan(/= [\w]+\|([\w ]+)/).each{|m|
|
36
36
|
p=m.first.to_s
|
37
37
|
platforms << p if !platforms.include?(p)
|
38
38
|
}
|
data/lib/publish.rb
CHANGED
@@ -1,20 +1,19 @@
|
|
1
1
|
require_relative('./environment.rb')
|
2
|
-
require_relative('./artifacts.rb')
|
3
2
|
require_relative('./console.rb')
|
4
3
|
|
5
4
|
class Publish < Array
|
6
5
|
|
7
6
|
def initialize
|
8
|
-
if(Environment.scm=='git')
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
end
|
7
|
+
#if(Environment.scm=='git')
|
8
|
+
# artifacts=Artifacts.new
|
9
|
+
# artifacts.each {|artifact|
|
10
|
+
# dest_dir = Environment.dev_root + "/dep/" + Environment.relative_directory + '/' + Environment.branch
|
11
|
+
# dest = dest_dir + "/" + artifact
|
12
|
+
# dest_dir=File.dirname(dest)
|
13
|
+
# self.add "<%FileUtils.mkdir_p('#{dest_dir}')%>" if (!Dir.exists?(dest_dir))
|
14
|
+
# self.add "<%FileUtils.cp('#{artifact}','#{dest}')%>"
|
15
|
+
# }
|
16
|
+
#end
|
18
17
|
end
|
19
18
|
|
20
19
|
def update
|
@@ -33,11 +32,11 @@ class Publish < Array
|
|
33
32
|
Console.debug "adding publish commands.."
|
34
33
|
add "svn mkdir #{svn_publish_uri} --parents -m\"publish\""
|
35
34
|
add "svn checkout #{svn_publish_uri} #{local_dir}"
|
36
|
-
DEV_TASKS[:
|
35
|
+
Dir.glob(DEV_TASKS[:artifact_glob]).each{|a|
|
37
36
|
f="#{Environment.dev_root}/tmp/#{a}"
|
38
37
|
dest_dir="#{File.dirname('#{local_dir}/#{a}')}"
|
39
38
|
add "<%FileUtils.mkdir(\"#{dest_dir}\") if !File.exists?(\"#{dest_dir}\")%>"
|
40
|
-
add "<%FileUtils.cp('#{dep_dir}/#{a}','#{local_dir}/#{a}')%>"
|
39
|
+
add "<%FileUtils.cp('#{dep_dir}/#{a}','#{local_dir}/#{a}') if File.exists?('#{dep_dir}/#{a}')%>"
|
41
40
|
add "svn add #{local_dir}/#{a} --parents"
|
42
41
|
}
|
43
42
|
add "svn commit #{local_dir} -m\"publish\""
|
data/lib/spec.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"dev_tasks","version":"0.0.
|
1
|
+
{"name":"dev_tasks","version":"0.0.142"}
|
data/lib/test.rb
CHANGED
data/spec/dependencies_spec.rb
CHANGED
@@ -2,7 +2,7 @@ require_relative '../lib/dependencies.rb'
|
|
2
2
|
|
3
3
|
describe Dependencies do
|
4
4
|
it "should be able to extract C# system dependencies" do
|
5
|
-
system_deps = Dependencies.csharp_system_dependencies File.read("#{File.dirname(__FILE__)}/test_data/
|
5
|
+
system_deps = Dependencies.csharp_system_dependencies File.read("#{File.dirname(__FILE__)}/test_data/csharp_projects/JsonNet.Test.csproj")
|
6
6
|
expect(system_deps.length).to eq(7)
|
7
7
|
expect(system_deps.include?('System')).to eq(true)
|
8
8
|
expect(system_deps.include?('System.Xml')).to eq(true)
|
@@ -10,7 +10,7 @@ describe Dependencies do
|
|
10
10
|
end
|
11
11
|
|
12
12
|
it "should be able to extract C# file dependencies" do
|
13
|
-
system_deps = Dependencies.csharp_file_dependencies File.read("#{File.dirname(__FILE__)}/test_data/
|
13
|
+
system_deps = Dependencies.csharp_file_dependencies File.read("#{File.dirname(__FILE__)}/test_data/csharp_projects/JsonNet.Test.csproj")
|
14
14
|
expect(system_deps.length).to eq(2)
|
15
15
|
expect(system_deps.include?('dep\github\lou-parslow\NetLibs\develop\NUnit\2.6.3\bin\framework\nunit.framework.dll')).to eq(true)
|
16
16
|
end
|
data/spec/dev_tasks_spec.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require_relative '../lib/dev_tasks.rb'
|
2
2
|
|
3
|
-
describe
|
3
|
+
describe DevTasks do
|
4
4
|
it "should be able to load example ruby project" do
|
5
5
|
Dir.chdir("#{File.dirname(__FILE__)}/test_data/ruby_project") do
|
6
6
|
ruby_dev_task=DevTasks.new
|
@@ -9,10 +9,27 @@ describe Dependencies do
|
|
9
9
|
end
|
10
10
|
|
11
11
|
it "should be able to load example C# project" do
|
12
|
-
Dir.chdir("#{File.dirname(__FILE__)}/test_data/
|
12
|
+
Dir.chdir("#{File.dirname(__FILE__)}/test_data/csharp_projects/helloDll") do
|
13
13
|
dev_task=DevTasks.new
|
14
|
-
expect(dev_task[:name]).to eq('
|
15
|
-
expect(dev_task[:
|
14
|
+
expect(dev_task[:name]).to eq('helloDll')
|
15
|
+
#expect(dev_task[:artifact_files].length).to eq(3)
|
16
16
|
end
|
17
|
+
dir="#{File.dirname(__FILE__)}/test_data/csharp_projects/helloDll"
|
18
|
+
Environment.rake(dir,"default",false)
|
19
|
+
File.exists?("#{dir}/bin/Net4.0/Debug/helloDll.dll").should eq(true)
|
20
|
+
File.exists?("#{dir}/bin/Net4.5/Release/helloDll.dll").should eq(true)
|
21
|
+
end
|
22
|
+
|
23
|
+
it "should be able to rake cpp static library" do
|
24
|
+
dir="#{File.dirname(__FILE__)}/test_data/cpp_projects/helloLib"
|
25
|
+
|
26
|
+
Environment.rake(dir,"default",false)
|
27
|
+
File.exists?("#{dir}/bin/vs9/Debug/helloLib.lib").should eq(true)
|
28
|
+
File.exists?("#{dir}/bin/vs9/Release/helloLib.lib").should eq(true)
|
29
|
+
File.exists?("#{dir}/bin/vs12/Debug/helloLib.lib").should eq(true)
|
30
|
+
File.exists?("#{dir}/bin/vs12/Release/helloLib.lib").should eq(true)
|
31
|
+
|
32
|
+
Environment.rake(dir,"clobber",false)
|
33
|
+
File.exists?("#{dir}/bin").should eq(false)
|
17
34
|
end
|
18
35
|
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
require_relative '../lib/msbuild.rb'
|
2
|
+
|
3
|
+
describe MSBuild do
|
4
|
+
|
5
|
+
it "should have be able extract 'Any CPU' platform from sln file" do
|
6
|
+
platforms=MSBuild.get_platforms("#{File.dirname(__FILE__)}/test_data/csharp_projects/helloDll/helloDll.sln")
|
7
|
+
platforms.include?('Any CPU').should eq(true)
|
8
|
+
end
|
9
|
+
end
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative '../../../../lib/dev_tasks.rb'
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
4
|
+
<PropertyGroup>
|
5
|
+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
6
|
+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
7
|
+
<ProjectGuid>{88CB4D41-A34A-4FB6-B63E-B87B678F2EA4}</ProjectGuid>
|
8
|
+
<OutputType>Library</OutputType>
|
9
|
+
<AppDesignerFolder>Properties</AppDesignerFolder>
|
10
|
+
<RootNamespace>helloDll</RootNamespace>
|
11
|
+
<AssemblyName>helloDll</AssemblyName>
|
12
|
+
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
|
13
|
+
<FileAlignment>512</FileAlignment>
|
14
|
+
<TargetFrameworkProfile />
|
15
|
+
</PropertyGroup>
|
16
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
17
|
+
<DebugSymbols>true</DebugSymbols>
|
18
|
+
<DebugType>full</DebugType>
|
19
|
+
<Optimize>false</Optimize>
|
20
|
+
<OutputPath>bin\Net2.0\Debug\</OutputPath>
|
21
|
+
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
22
|
+
<ErrorReport>prompt</ErrorReport>
|
23
|
+
<WarningLevel>4</WarningLevel>
|
24
|
+
</PropertyGroup>
|
25
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
26
|
+
<DebugType>pdbonly</DebugType>
|
27
|
+
<Optimize>true</Optimize>
|
28
|
+
<OutputPath>bin\Net2.0\Release\</OutputPath>
|
29
|
+
<DefineConstants>TRACE</DefineConstants>
|
30
|
+
<ErrorReport>prompt</ErrorReport>
|
31
|
+
<WarningLevel>4</WarningLevel>
|
32
|
+
</PropertyGroup>
|
33
|
+
<ItemGroup>
|
34
|
+
<Reference Include="System" />
|
35
|
+
<Reference Include="System.Core" />
|
36
|
+
<Reference Include="System.Xml.Linq" />
|
37
|
+
<Reference Include="System.Data.DataSetExtensions" />
|
38
|
+
<Reference Include="Microsoft.CSharp" />
|
39
|
+
<Reference Include="System.Data" />
|
40
|
+
<Reference Include="System.Xml" />
|
41
|
+
</ItemGroup>
|
42
|
+
<ItemGroup>
|
43
|
+
<Compile Include="helloDll.cs" />
|
44
|
+
<Compile Include="Properties\AssemblyInfo.cs" />
|
45
|
+
</ItemGroup>
|
46
|
+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
47
|
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
48
|
+
Other similar extension points exist, see Microsoft.Common.targets.
|
49
|
+
<Target Name="BeforeBuild">
|
50
|
+
</Target>
|
51
|
+
<Target Name="AfterBuild">
|
52
|
+
</Target>
|
53
|
+
-->
|
54
|
+
</Project>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
4
|
+
<PropertyGroup>
|
5
|
+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
6
|
+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
7
|
+
<ProjectGuid>{A8EB578F-5F3B-4314-93A5-A6F80D236835}</ProjectGuid>
|
8
|
+
<OutputType>Library</OutputType>
|
9
|
+
<AppDesignerFolder>Properties</AppDesignerFolder>
|
10
|
+
<RootNamespace>helloDll</RootNamespace>
|
11
|
+
<AssemblyName>helloDll</AssemblyName>
|
12
|
+
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
13
|
+
<FileAlignment>512</FileAlignment>
|
14
|
+
<TargetFrameworkProfile />
|
15
|
+
</PropertyGroup>
|
16
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
17
|
+
<DebugSymbols>true</DebugSymbols>
|
18
|
+
<DebugType>full</DebugType>
|
19
|
+
<Optimize>false</Optimize>
|
20
|
+
<OutputPath>bin\Net3.5\Debug\</OutputPath>
|
21
|
+
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
22
|
+
<ErrorReport>prompt</ErrorReport>
|
23
|
+
<WarningLevel>4</WarningLevel>
|
24
|
+
</PropertyGroup>
|
25
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
26
|
+
<DebugType>pdbonly</DebugType>
|
27
|
+
<Optimize>true</Optimize>
|
28
|
+
<OutputPath>bin\Net3.5\Release\</OutputPath>
|
29
|
+
<DefineConstants>TRACE</DefineConstants>
|
30
|
+
<ErrorReport>prompt</ErrorReport>
|
31
|
+
<WarningLevel>4</WarningLevel>
|
32
|
+
</PropertyGroup>
|
33
|
+
<ItemGroup>
|
34
|
+
<Reference Include="System" />
|
35
|
+
<Reference Include="System.Core" />
|
36
|
+
<Reference Include="System.Xml.Linq" />
|
37
|
+
<Reference Include="System.Data.DataSetExtensions" />
|
38
|
+
<Reference Include="Microsoft.CSharp" />
|
39
|
+
<Reference Include="System.Data" />
|
40
|
+
<Reference Include="System.Xml" />
|
41
|
+
</ItemGroup>
|
42
|
+
<ItemGroup>
|
43
|
+
<Compile Include="helloDll.cs" />
|
44
|
+
<Compile Include="Properties\AssemblyInfo.cs" />
|
45
|
+
</ItemGroup>
|
46
|
+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
47
|
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
48
|
+
Other similar extension points exist, see Microsoft.Common.targets.
|
49
|
+
<Target Name="BeforeBuild">
|
50
|
+
</Target>
|
51
|
+
<Target Name="AfterBuild">
|
52
|
+
</Target>
|
53
|
+
-->
|
54
|
+
</Project>
|
@@ -0,0 +1,54 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
4
|
+
<PropertyGroup>
|
5
|
+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
6
|
+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
7
|
+
<ProjectGuid>{3721A12A-3E37-4DF9-B2AC-68C928397A2A}</ProjectGuid>
|
8
|
+
<OutputType>Library</OutputType>
|
9
|
+
<AppDesignerFolder>Properties</AppDesignerFolder>
|
10
|
+
<RootNamespace>helloDll</RootNamespace>
|
11
|
+
<AssemblyName>helloDll</AssemblyName>
|
12
|
+
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
13
|
+
<FileAlignment>512</FileAlignment>
|
14
|
+
<TargetFrameworkProfile />
|
15
|
+
</PropertyGroup>
|
16
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
17
|
+
<DebugSymbols>true</DebugSymbols>
|
18
|
+
<DebugType>full</DebugType>
|
19
|
+
<Optimize>false</Optimize>
|
20
|
+
<OutputPath>bin\Net4.0\Debug\</OutputPath>
|
21
|
+
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
22
|
+
<ErrorReport>prompt</ErrorReport>
|
23
|
+
<WarningLevel>4</WarningLevel>
|
24
|
+
</PropertyGroup>
|
25
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
26
|
+
<DebugType>pdbonly</DebugType>
|
27
|
+
<Optimize>true</Optimize>
|
28
|
+
<OutputPath>bin\Net4.0\Release\</OutputPath>
|
29
|
+
<DefineConstants>TRACE</DefineConstants>
|
30
|
+
<ErrorReport>prompt</ErrorReport>
|
31
|
+
<WarningLevel>4</WarningLevel>
|
32
|
+
</PropertyGroup>
|
33
|
+
<ItemGroup>
|
34
|
+
<Reference Include="System" />
|
35
|
+
<Reference Include="System.Core" />
|
36
|
+
<Reference Include="System.Xml.Linq" />
|
37
|
+
<Reference Include="System.Data.DataSetExtensions" />
|
38
|
+
<Reference Include="Microsoft.CSharp" />
|
39
|
+
<Reference Include="System.Data" />
|
40
|
+
<Reference Include="System.Xml" />
|
41
|
+
</ItemGroup>
|
42
|
+
<ItemGroup>
|
43
|
+
<Compile Include="helloDll.cs" />
|
44
|
+
<Compile Include="Properties\AssemblyInfo.cs" />
|
45
|
+
</ItemGroup>
|
46
|
+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
47
|
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
48
|
+
Other similar extension points exist, see Microsoft.Common.targets.
|
49
|
+
<Target Name="BeforeBuild">
|
50
|
+
</Target>
|
51
|
+
<Target Name="AfterBuild">
|
52
|
+
</Target>
|
53
|
+
-->
|
54
|
+
</Project>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
3
|
+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
4
|
+
<PropertyGroup>
|
5
|
+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
6
|
+
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
7
|
+
<ProjectGuid>{2D0F3AF6-BC32-4E7A-950C-24DA25A31883}</ProjectGuid>
|
8
|
+
<OutputType>Library</OutputType>
|
9
|
+
<AppDesignerFolder>Properties</AppDesignerFolder>
|
10
|
+
<RootNamespace>helloDll</RootNamespace>
|
11
|
+
<AssemblyName>helloDll</AssemblyName>
|
12
|
+
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
13
|
+
<FileAlignment>512</FileAlignment>
|
14
|
+
<TargetFrameworkProfile />
|
15
|
+
</PropertyGroup>
|
16
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
17
|
+
<DebugSymbols>true</DebugSymbols>
|
18
|
+
<DebugType>full</DebugType>
|
19
|
+
<Optimize>false</Optimize>
|
20
|
+
<OutputPath>bin\Net4.5\Debug\</OutputPath>
|
21
|
+
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
22
|
+
<ErrorReport>prompt</ErrorReport>
|
23
|
+
<WarningLevel>4</WarningLevel>
|
24
|
+
<Prefer32Bit>false</Prefer32Bit>
|
25
|
+
</PropertyGroup>
|
26
|
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
27
|
+
<DebugType>pdbonly</DebugType>
|
28
|
+
<Optimize>true</Optimize>
|
29
|
+
<OutputPath>bin\Net4.5\Release\</OutputPath>
|
30
|
+
<DefineConstants>TRACE</DefineConstants>
|
31
|
+
<ErrorReport>prompt</ErrorReport>
|
32
|
+
<WarningLevel>4</WarningLevel>
|
33
|
+
<Prefer32Bit>false</Prefer32Bit>
|
34
|
+
</PropertyGroup>
|
35
|
+
<ItemGroup>
|
36
|
+
<Reference Include="System" />
|
37
|
+
<Reference Include="System.Core" />
|
38
|
+
<Reference Include="System.Xml.Linq" />
|
39
|
+
<Reference Include="System.Data.DataSetExtensions" />
|
40
|
+
<Reference Include="Microsoft.CSharp" />
|
41
|
+
<Reference Include="System.Data" />
|
42
|
+
<Reference Include="System.Xml" />
|
43
|
+
</ItemGroup>
|
44
|
+
<ItemGroup>
|
45
|
+
<Compile Include="helloDll.cs" />
|
46
|
+
<Compile Include="Properties\AssemblyInfo.cs" />
|
47
|
+
</ItemGroup>
|
48
|
+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
49
|
+
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
50
|
+
Other similar extension points exist, see Microsoft.Common.targets.
|
51
|
+
<Target Name="BeforeBuild">
|
52
|
+
</Target>
|
53
|
+
<Target Name="AfterBuild">
|
54
|
+
</Target>
|
55
|
+
-->
|
56
|
+
</Project>
|
@@ -0,0 +1 @@
|
|
1
|
+
require_relative '../../../../lib/dev_tasks.rb'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dev_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.142
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -98,7 +98,7 @@ extensions: []
|
|
98
98
|
extra_rdoc_files: []
|
99
99
|
files:
|
100
100
|
- lib/add.rb
|
101
|
-
- lib/artifacts.rb
|
101
|
+
- lib/artifacts.x.rb
|
102
102
|
- lib/build.rb
|
103
103
|
- lib/color.rb
|
104
104
|
- lib/commands.rb
|
@@ -123,12 +123,19 @@ files:
|
|
123
123
|
- spec/dependencies_spec.rb
|
124
124
|
- spec/dev_tasks_spec.rb
|
125
125
|
- spec/environment_spec.rb
|
126
|
+
- spec/msbuild_spec.rb
|
126
127
|
- spec/spec_helper.rb
|
128
|
+
- spec/test_data/cpp_projects/helloLib/rakefile.rb
|
129
|
+
- spec/test_data/csharp_projects/helloDll/rakefile.rb
|
127
130
|
- spec/test_data/example.rb
|
128
131
|
- spec/test_data/ruby_project/rakefile.rb
|
129
|
-
- spec/test_data/
|
130
|
-
- spec/test_data/
|
131
|
-
- spec/test_data/
|
132
|
+
- spec/test_data/csharp_projects/helloDll/helloDll.Net2.0.csproj
|
133
|
+
- spec/test_data/csharp_projects/helloDll/helloDll.Net3.5.csproj
|
134
|
+
- spec/test_data/csharp_projects/helloDll/helloDll.Net4.0.csproj
|
135
|
+
- spec/test_data/csharp_projects/helloDll/helloDll.Net4.5.csproj
|
136
|
+
- spec/test_data/csharp_projects/JsonNet.csproj
|
137
|
+
- spec/test_data/csharp_projects/JsonNet.Test.csproj
|
138
|
+
- spec/test_data/csharp_projects/QcNet.csproj
|
132
139
|
- LICENSE
|
133
140
|
- README
|
134
141
|
homepage: http://rubygems.org/gems/dev_tasks
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|