ivy4r 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/lib/buildr/ivy_extension.rb +11 -3
- data/lib/ivy4r.rb +1 -1
- metadata +1 -1
data/History.txt
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
=== 0.10.2 / 2010-03-30
|
2
|
+
* Fixed nil access exception for undefined user settings of type 'ivy'
|
3
|
+
|
1
4
|
=== 0.10.1 / 2010-03-30
|
2
5
|
* Some fixes for the rake ivy result caching.
|
3
6
|
* Renamed the targets from ivy:enableresultcache, ivy:disableresultcache and ivy:cleanresultcache
|
data/lib/buildr/ivy_extension.rb
CHANGED
@@ -5,7 +5,15 @@ module Buildr
|
|
5
5
|
|
6
6
|
class << self
|
7
7
|
def setting(*keys)
|
8
|
-
|
8
|
+
find_setting(Buildr.settings.build['ivy'], *keys)
|
9
|
+
end
|
10
|
+
|
11
|
+
def user_setting(*keys)
|
12
|
+
find_setting(Buildr.settings.user['ivy'], *keys)
|
13
|
+
end
|
14
|
+
|
15
|
+
private
|
16
|
+
def find_setting(setting, *keys)
|
9
17
|
keys.each { |key| setting = setting[key] unless setting.nil? }
|
10
18
|
setting
|
11
19
|
end
|
@@ -70,12 +78,12 @@ module Buildr
|
|
70
78
|
# Returns if ivy result caching is enabled via build or user properties or by existence of the
|
71
79
|
# marker file.
|
72
80
|
def caching_enabled?
|
73
|
-
|
81
|
+
Ivy.user_setting('caching.enabled') || Ivy.setting('caching.enabled') || File.exists?(caching_marker)
|
74
82
|
end
|
75
83
|
|
76
84
|
# Returns the use ivy result caching marker file
|
77
85
|
def caching_marker
|
78
|
-
project.path_to('use_ivy_caching')
|
86
|
+
@project.path_to('use_ivy_caching')
|
79
87
|
end
|
80
88
|
|
81
89
|
# Returns the dir to store ivy caching results in.
|
data/lib/ivy4r.rb
CHANGED