ivy4r 0.9.5 → 0.9.6
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 +7 -0
- data/lib/ivy4r.rb +13 -3
- metadata +2 -2
data/History.txt
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
=== 0.9.6 / 2009-12-09
|
2
|
+
|
3
|
+
* Support for JRuby access to underlying java objects of ivy. Require 'ivy4r_java_extensions'
|
4
|
+
instead of 'ivy4r'. The Ivy4r#ivy_instance returns a new ivy instance configured with the same
|
5
|
+
settings file as used in the underlying ant process. Note that configuration via URL is not
|
6
|
+
supported.
|
7
|
+
|
1
8
|
=== 0.9.5 / 2009-12-01
|
2
9
|
|
3
10
|
* Bugfix for manifest handling in packages. The custom set manifest informations are not lost,
|
data/lib/ivy4r.rb
CHANGED
@@ -35,7 +35,7 @@ is
|
|
35
35
|
}
|
36
36
|
=end
|
37
37
|
class Ivy4r
|
38
|
-
VERSION = '0.9.
|
38
|
+
VERSION = '0.9.6'
|
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.
|
@@ -56,6 +56,9 @@ class Ivy4r
|
|
56
56
|
# To provide a custom __antwrap__ to use instead of default one
|
57
57
|
attr_writer :ant
|
58
58
|
|
59
|
+
# Access to ivy settings set via configure or settings method.
|
60
|
+
attr_accessor :settings_file
|
61
|
+
|
59
62
|
# Initalizes ivy4r with optional ant wrapper object. Sets ant home dir and ivy lib dir
|
60
63
|
# to default values from __Ivy4rJars__ gem.
|
61
64
|
def initialize(ant = nil)
|
@@ -73,12 +76,18 @@ class Ivy4r
|
|
73
76
|
|
74
77
|
# Calls the __settings__ ivy target with given parameters.
|
75
78
|
def settings(*params)
|
76
|
-
Ivy::Settings.new(ant)
|
79
|
+
settings_task = Ivy::Settings.new(ant)
|
80
|
+
result = settings_task.execute(*params)
|
81
|
+
@settings_file = settings_task.params[:file]
|
82
|
+
result
|
77
83
|
end
|
78
84
|
|
79
85
|
# Calls the __configure__ ivy target with given parameters.
|
80
86
|
def configure(*params)
|
81
|
-
Ivy::Configure.new(ant)
|
87
|
+
configure_task = Ivy::Configure.new(ant)
|
88
|
+
result = configure_task.execute(*params)
|
89
|
+
@settings_file = configure_task.params[:file]
|
90
|
+
result
|
82
91
|
end
|
83
92
|
|
84
93
|
# Calls the __info__ ivy target with given parameters and returns info as hash.
|
@@ -207,6 +216,7 @@ class Ivy4r
|
|
207
216
|
ant.taskdef :name => "ivy_cleancache", :classname => "org.apache.ivy.ant.IvyCleanCache", :classpathref => "ivy.lib.path", :loaderRef => 'ivy.lib.path.loader'
|
208
217
|
end
|
209
218
|
|
219
|
+
# Returns the ant properties, note that this are java objects.
|
210
220
|
def ant_properties
|
211
221
|
ant.project.properties
|
212
222
|
end
|
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.
|
4
|
+
version: 0.9.6
|
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-
|
12
|
+
date: 2009-12-09 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|