ivy4r 0.9.10 → 0.9.11

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,7 @@
1
+ === 0.9.11 / 2009-12-22
2
+
3
+ * Fix of the ivy:clean target to clean the ivy cache via the cleancache task.
4
+
1
5
  === 0.9.10 / 2009-12-21
2
6
 
3
7
  * Better support for Rake targets using the deps mechanism from buildr support.
@@ -151,6 +151,12 @@ module Buildr
151
151
  ivy4r.report :todir => report_dir
152
152
  end
153
153
 
154
+ # Cleans the ivy cache
155
+ def cleancache
156
+ ivy4r.cleancache
157
+ end
158
+
159
+
154
160
  # Publishs the project as defined in ivy file if it has not been published already
155
161
  def __publish__
156
162
  if @base_ivy
@@ -636,16 +642,16 @@ For more configuration options see IvyConfig.
636
642
  IvyExtension.add_prod_libs_to_distributeables(project)
637
643
  IvyExtension.add_copy_tasks_for_publish(project)
638
644
 
639
- task :clean do
640
- # TODO This is redundant, refactor ivy_ant_wrap and this to use a single config object
641
- info "Cleaning ivy reports"
642
- rm_rf project.path_to(:reports, 'ivy')
643
- end
644
-
645
645
  namespace 'ivy' do
646
646
  task :configure do
647
647
  project.ivy.configure
648
648
  end
649
+
650
+ task :clean => :configure do
651
+ # TODO This is redundant, refactor ivy_ant_wrap and this to use a single config object
652
+ rm_rf project.path_to(:reports, 'ivy')
653
+ project.ivy.cleancache
654
+ end
649
655
 
650
656
  task :resolve => "#{project.name}:ivy:configure" do
651
657
  project.ivy.__resolve__
@@ -666,9 +672,8 @@ For more configuration options see IvyConfig.
666
672
  # Global targets that are not bound to a project
667
673
  namespace 'ivy' do
668
674
  task :clean do
669
- info "Cleaning local ivy cache"
670
675
  Buildr.projects.find_all{ |p| p.ivy.own_file? }.each do |project|
671
- project.ivy.ivy4r.clean
676
+ project.task('ivy:clean').invoke
672
677
  end
673
678
  end
674
679
 
data/lib/ivy4r.rb CHANGED
@@ -35,7 +35,7 @@ is
35
35
  }
36
36
  =end
37
37
  class Ivy4r
38
- VERSION = '0.9.10'
38
+ VERSION = '0.9.11'
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: ivy4r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.11
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-12-21 00:00:00 +01:00
12
+ date: 2009-12-22 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency