ivy4r 0.12.9 → 0.12.10
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/lib/buildr/ivy_extension.rb +4 -4
- data/lib/ivy/install.rb +32 -32
- data/lib/ivy4r/version.rb +1 -1
- data/lib/rake/ivy_extension.rb +4 -4
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
=== 0.12.10 / 2011-01-21
|
2
|
+
* Default folder for settings file changed to '@extension_dir/iyvsettings.xml'
|
3
|
+
* Default ivy.home property is left empty to use default '${user.home}/.ivy2'
|
4
|
+
|
1
5
|
=== 0.12.9 / 2011-01-17
|
2
6
|
* Added missing 'install' target, use it as defined in Ivy documentation
|
3
7
|
|
data/lib/buildr/ivy_extension.rb
CHANGED
@@ -142,8 +142,8 @@ module Buildr
|
|
142
142
|
@base_ivy.configure
|
143
143
|
else
|
144
144
|
unless @configured
|
145
|
-
ivy4r.property['ivy.status'] = status
|
146
|
-
ivy4r.property['ivy.home'] = home
|
145
|
+
ivy4r.property['ivy.status'] = status if status
|
146
|
+
ivy4r.property['ivy.home'] = home if home
|
147
147
|
properties.each {|key, value| ivy4r.property[key.to_s] = value }
|
148
148
|
@configured = ivy4r.settings :file => settings if settings
|
149
149
|
end
|
@@ -208,7 +208,7 @@ module Buildr
|
|
208
208
|
end
|
209
209
|
|
210
210
|
def home
|
211
|
-
@ivy_home_dir ||= Ivy.setting('home.dir')
|
211
|
+
@ivy_home_dir ||= Ivy.setting('home.dir')
|
212
212
|
end
|
213
213
|
|
214
214
|
def lib_dir
|
@@ -216,7 +216,7 @@ module Buildr
|
|
216
216
|
end
|
217
217
|
|
218
218
|
def settings
|
219
|
-
@settings ||= Ivy.setting('settings.file') || "#{@extension_dir}/
|
219
|
+
@settings ||= Ivy.setting('settings.file') || "#{@extension_dir}/ivysettings.xml"
|
220
220
|
end
|
221
221
|
|
222
222
|
# The basic file name to use in project dir as ivy.xml file. Normally this should be __ivy.xml__
|
data/lib/ivy/install.rb
CHANGED
@@ -1,33 +1,33 @@
|
|
1
|
-
require 'ivy/target'
|
2
|
-
|
3
|
-
module Ivy
|
4
|
-
class Install < Ivy::Target
|
5
|
-
def parameter
|
6
|
-
[
|
7
|
-
Parameter.new(:from, true),
|
8
|
-
Parameter.new(:to, true),
|
9
|
-
Parameter.new(:organisation, true),
|
10
|
-
Parameter.new(:module, true),
|
11
|
-
Parameter.new(:branch, false),
|
12
|
-
Parameter.new(:revision, true),
|
13
|
-
Parameter.new(:type, false),
|
14
|
-
Parameter.new(:validate, false),
|
15
|
-
Parameter.new(:overwrite, false),
|
16
|
-
Parameter.new(:transitive, false),
|
17
|
-
Parameter.new(:matcher, false),
|
18
|
-
Parameter.new(:settingsRef, false),
|
19
|
-
Parameter.new(:haltonfailure, false)
|
20
|
-
]
|
21
|
-
end
|
22
|
-
|
23
|
-
protected
|
24
|
-
def execute_ivy
|
25
|
-
call_nested :ivy_install => params
|
26
|
-
end
|
27
|
-
|
28
|
-
def create_return_values
|
29
|
-
nil
|
30
|
-
end
|
31
|
-
|
32
|
-
end
|
1
|
+
require 'ivy/target'
|
2
|
+
|
3
|
+
module Ivy
|
4
|
+
class Install < Ivy::Target
|
5
|
+
def parameter
|
6
|
+
[
|
7
|
+
Parameter.new(:from, true),
|
8
|
+
Parameter.new(:to, true),
|
9
|
+
Parameter.new(:organisation, true),
|
10
|
+
Parameter.new(:module, true),
|
11
|
+
Parameter.new(:branch, false),
|
12
|
+
Parameter.new(:revision, true),
|
13
|
+
Parameter.new(:type, false),
|
14
|
+
Parameter.new(:validate, false),
|
15
|
+
Parameter.new(:overwrite, false),
|
16
|
+
Parameter.new(:transitive, false),
|
17
|
+
Parameter.new(:matcher, false),
|
18
|
+
Parameter.new(:settingsRef, false),
|
19
|
+
Parameter.new(:haltonfailure, false)
|
20
|
+
]
|
21
|
+
end
|
22
|
+
|
23
|
+
protected
|
24
|
+
def execute_ivy
|
25
|
+
call_nested :ivy_install => params
|
26
|
+
end
|
27
|
+
|
28
|
+
def create_return_values
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
33
|
end
|
data/lib/ivy4r/version.rb
CHANGED
data/lib/rake/ivy_extension.rb
CHANGED
@@ -92,8 +92,8 @@ module Rake
|
|
92
92
|
# Configures the ivy instance with additional properties and loading the settings file if it was provided
|
93
93
|
def configure
|
94
94
|
unless @configured
|
95
|
-
ivy4r.property['ivy.status'] = status
|
96
|
-
ivy4r.property['ivy.home'] = home
|
95
|
+
ivy4r.property['ivy.status'] = status if status
|
96
|
+
ivy4r.property['ivy.home'] = home if home
|
97
97
|
properties.each {|key, value| ivy4r.property[key.to_s] = value }
|
98
98
|
@configured = ivy4r.settings :file => settings if settings
|
99
99
|
end
|
@@ -126,11 +126,11 @@ module Rake
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def home
|
129
|
-
@ivy_home_dir
|
129
|
+
@ivy_home_dir
|
130
130
|
end
|
131
131
|
|
132
132
|
def settings
|
133
|
-
@settings ||= "#{@extension_dir}/
|
133
|
+
@settings ||= "#{@extension_dir}/ivysettings.xml"
|
134
134
|
end
|
135
135
|
|
136
136
|
def file
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 12
|
8
|
-
-
|
9
|
-
version: 0.12.
|
8
|
+
- 10
|
9
|
+
version: 0.12.10
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Klaas Reineke
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-01-
|
17
|
+
date: 2011-01-21 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|