ivy4r 0.7.1 → 0.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,8 @@
1
+ === 0.7.2 / 2009-09-08
2
+
3
+ * Fix bug for creating EARs. The package dependencies are added into the root directory
4
+ of the EAR.
5
+
1
6
  === 0.7.1 / 2009-08-24
2
7
 
3
8
  * Fix bug that manual added dependencies are overwritten for package task
@@ -470,7 +470,7 @@ For more configuration options see IvyConfig.
470
470
  excludes = project.ivy.compile_exclude
471
471
  confs = [project.ivy.compile_conf].flatten
472
472
  if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
473
- project.compile.with [project.compile.dependencies, deps].flatten
473
+ project.compile.with [deps, project.compile.dependencies].flatten
474
474
  info "Ivy adding compile dependencies '#{confs.join(', ')}' to project '#{project.name}'"
475
475
  end
476
476
  end
@@ -482,7 +482,7 @@ For more configuration options see IvyConfig.
482
482
  excludes = project.ivy.test_exclude
483
483
  confs = [project.ivy.test_conf, project.ivy.compile_conf].flatten.uniq
484
484
  if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
485
- project.test.with [project.test.dependencies, deps].flatten
485
+ project.test.with [deps, project.test.dependencies].flatten
486
486
  info "Ivy adding test dependencies '#{confs.join(', ')}' to project '#{project.name}'"
487
487
  end
488
488
  end
@@ -515,16 +515,29 @@ For more configuration options see IvyConfig.
515
515
  end
516
516
 
517
517
  def add_prod_libs_to_distributeables(project)
518
- pkgs = project.packages.find_all { |pkg| [:war, :ear].member? pkg.type }
518
+ pkgs = project.packages.find_all { |pkg| [:war].member? pkg.type }
519
519
  pkgs.each do |pkg|
520
- name = "#{pkg.name}deps"
521
- task = project.task name => project.ivy.file_project.task('ivy:resolve') do
520
+ task = project.task "#{pkg.name}deps" => project.ivy.file_project.task('ivy:resolve') do
521
+ includes = project.ivy.package_include
522
+ excludes = project.ivy.package_exclude
523
+ confs = project.ivy.package_conf
524
+ if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
525
+ pkg.with :libs => [deps, pkg.libs].flatten
526
+ info "Adding production libs from conf '#{confs.join(', ')}' to WAR '#{pkg.name}' in project '#{project.name}'"
527
+ end
528
+ end
529
+ project.task :build => task
530
+ end
531
+
532
+ pkgs = project.packages.find_all { |pkg| [:ear].member? pkg.type }
533
+ pkgs.each do |pkg|
534
+ task = project.task "#{pkg.name}deps" => project.ivy.file_project.task('ivy:resolve') do
522
535
  includes = project.ivy.package_include
523
536
  excludes = project.ivy.package_exclude
524
537
  confs = project.ivy.package_conf
525
538
  if deps = project.ivy.filter(confs, :include => includes, :exclude => excludes)
526
- pkg.with :libs => [pkg.libs, deps].flatten
527
- info "Adding production libs from conf '#{confs.join(', ')}' to package '#{pkg.name}' in project '#{project.name}'"
539
+ pkg.add deps, :type => :lib, :path => ''
540
+ info "Adding production libs from conf '#{confs.join(', ')}' to EAR '#{pkg.name}' in project '#{project.name}'"
528
541
  end
529
542
  end
530
543
  project.task :build => task
@@ -35,7 +35,7 @@ is
35
35
  }
36
36
  =end
37
37
  class Ivy4r
38
- VERSION = '0.7.1'
38
+ VERSION = '0.7.2'
39
39
 
40
40
  # Set the ant home directory to load ant classes from if no custom __antwrap__ is provided
41
41
  # and the default provided ant version 1.7.1 should not be used.
metadata CHANGED
@@ -89,14 +89,14 @@ requirements: []
89
89
 
90
90
  authors:
91
91
  - Klaas Prause
92
- date: 2009-08-23 22:00:00 +00:00
92
+ date: 2009-09-07 22:00:00 +00:00
93
93
  platform: ruby
94
94
  test_files:
95
95
  - test/test_ivy4r.rb
96
96
  - test/ivy/test_target.rb
97
97
  - test/ivy/test_targets.rb
98
98
  version: !ruby/object:Gem::Version
99
- version: 0.7.1
99
+ version: 0.7.2
100
100
  require_paths:
101
101
  - lib
102
102
  dependencies: