klaas1979-ivy4r 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -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
data/lib/ivy4r.rb CHANGED
@@ -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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: klaas1979-ivy4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Klaas Prause
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-08-24 00:00:00 -07:00
12
+ date: 2009-09-08 00:00:00 -07:00
13
13
  default_executable: ivy4r
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency