iron_hammer 0.3.10 → 0.3.11

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ $hoe = Hoe.spec 'iron_hammer' do
12
12
  self.rubyforge_name = self.name
13
13
  self.extra_deps = [['rubyzip2','>= 2.0.1'],
14
14
  ['builder', '>= 2.1.2']]
15
- self.version = '0.3.10'
15
+ self.version = '0.3.11'
16
16
  end
17
17
 
18
18
  require 'newgem/tasks'
@@ -31,7 +31,10 @@ module IronHammer
31
31
  def test *projects
32
32
  return if projects.nil? || projects.empty?
33
33
  parent_dir = File.join(projects.first.path || '.', '..')
34
- runconfig = '/runconfig:LocalTestRun.testrunconfig ' if File.exists?(File.join(parent_dir, 'LocalTestRun.testrunconfig'))
34
+ config = ['LocalTestRun', 'TestRunConfig'].find do |config_name|
35
+ File.exists?(File.join(parent_dir, "#{config_name}.testrunconfig"))
36
+ end
37
+ runconfig = "/runconfig:#{config}.testrunconfig " if config
35
38
  containers = projects.collect{|project| "/testcontainer:#{project.container @configuration}"}
36
39
  results = projects.first.results_file
37
40
  mstest = @dot_net_environment.mstest
@@ -45,18 +45,24 @@ namespace :iron do
45
45
  task :setup, [:binaries_path] do |t, args|
46
46
  @anvil.projects.each do |project|
47
47
  project.dependencies.each do |dependency|
48
- dependency_project = DependencyProject.new(
48
+
49
+ sh "java -jar #{IVY_JAR} -settings #{IVY_SETTINGS} -dependency #{ORGANISATION} #{dependency.name} #{dependency.version}" do |ok, res|
50
+ if !ok
51
+ dependency_project = DependencyProject.new(
49
52
  :name => dependency.name,
50
53
  :binaries_path => args.binaries_path,
51
54
  :version => dependency.version)
52
55
 
53
- puts "Dependency #{dependency.name}"
56
+ puts "Dependency #{dependency.name}"
57
+
58
+ builder = IvyBuilder.new dependency_project
54
59
 
55
- builder = IvyBuilder.new dependency_project
60
+ builder.write_to "ivy-#{dependency.name}.xml"
56
61
 
57
- builder.write_to "ivy-#{dependency.name}.xml"
62
+ sh builder.publish "ivy-#{dependency.name}.xml"
63
+ end
64
+ end
58
65
 
59
- sh builder.publish "ivy-#{dependency.name}.xml"
60
66
  end
61
67
  end
62
68
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iron_hammer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mozair Alves do Carmo Junior
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-02 00:00:00 -02:00
12
+ date: 2010-02-03 00:00:00 -02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency