ivy4r 0.8.0 → 0.8.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +19 -0
- data/lib/buildr/ivy_extension.rb +0 -9
- data/lib/ivy4r.rb +7 -1
- metadata +3 -3
data/History.txt
CHANGED
@@ -1,3 +1,22 @@
|
|
1
|
+
=== 0.8.1 / 2009-11-12
|
2
|
+
|
3
|
+
* the project version is NOT set anymore by the the 'before_define' of the extension. The reason
|
4
|
+
for this are problems with ivy files that contain external references (i.e. include within the conf
|
5
|
+
block). The info task used for this needs more configuration information to work properly so this
|
6
|
+
feature is removed and the user must do it herself.
|
7
|
+
* In our projects we just moved the defintion to a different extension that configures more stuff
|
8
|
+
before setting the version and group:
|
9
|
+
before_define do |project|
|
10
|
+
if project.parent.nil? && project.ivy.enabled?
|
11
|
+
# do more configuration here prior setting the versions
|
12
|
+
info = project.ivy.info
|
13
|
+
project.version = info['ivy.revision']
|
14
|
+
project.group = "#{info['ivy.organisation']}.#{info['ivy.module']}"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
* As an alternative you can set the group and version manually in the build file as it is usally done
|
18
|
+
in buildr.
|
19
|
+
|
1
20
|
=== 0.8.0 / 2009-10-19
|
2
21
|
|
3
22
|
* Moved to gemcutter for hosting of gems 'gem install gemcutter' add it as primary location and you
|
data/lib/buildr/ivy_extension.rb
CHANGED
@@ -84,7 +84,6 @@ module Buildr
|
|
84
84
|
# Returns the artifacts for given configurations as array
|
85
85
|
# this is a post resolve task.
|
86
86
|
def deps(*confs)
|
87
|
-
configure
|
88
87
|
confs = confs.reject {|c| c.nil? || c.blank? }
|
89
88
|
unless confs.empty?
|
90
89
|
pathid = "ivy.deps." + confs.join('.')
|
@@ -590,14 +589,6 @@ For more configuration options see IvyConfig.
|
|
590
589
|
end
|
591
590
|
end
|
592
591
|
|
593
|
-
before_define do |project|
|
594
|
-
if project.parent.nil? && project.ivy.enabled?
|
595
|
-
info = project.ivy.info
|
596
|
-
project.version = info['ivy.revision']
|
597
|
-
project.group = "#{info['ivy.organisation']}.#{info['ivy.module']}"
|
598
|
-
end
|
599
|
-
end
|
600
|
-
|
601
592
|
after_define do |project|
|
602
593
|
if project.ivy.enabled?
|
603
594
|
IvyExtension.add_ivy_deps_to_java_tasks(project)
|
data/lib/ivy4r.rb
CHANGED
@@ -35,7 +35,7 @@ is
|
|
35
35
|
}
|
36
36
|
=end
|
37
37
|
class Ivy4r
|
38
|
-
VERSION = '0.8.
|
38
|
+
VERSION = '0.8.1'
|
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.
|
@@ -49,6 +49,10 @@ class Ivy4r
|
|
49
49
|
# defaults to the __lib_dir__
|
50
50
|
attr_accessor :project_dir
|
51
51
|
|
52
|
+
# The ant property name to use for references to environment properties in ant and ivy,
|
53
|
+
# defaults to 'env'
|
54
|
+
attr_accessor :environment_property
|
55
|
+
|
52
56
|
# To provide a custom __antwrap__ to use instead of default one
|
53
57
|
attr_writer :ant
|
54
58
|
|
@@ -58,6 +62,7 @@ class Ivy4r
|
|
58
62
|
@ant_home = ::Ivy4rJars.ant_home_dir
|
59
63
|
@lib_dir = ::Ivy4rJars.lib_dir
|
60
64
|
@project_dir = @lib_dir
|
65
|
+
@environment_property = 'env'
|
61
66
|
@ant = ant
|
62
67
|
end
|
63
68
|
|
@@ -169,6 +174,7 @@ class Ivy4r
|
|
169
174
|
|
170
175
|
def init(ant)
|
171
176
|
@init_done = true
|
177
|
+
ant.property :environment => environment_property
|
172
178
|
ant.property :name => 'ivy.project.dir', :value => project_dir
|
173
179
|
ant.path :id => 'ivy.lib.path' do
|
174
180
|
ant.fileset :dir => lib_dir, :includes => '*.jar'
|
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.8.
|
4
|
+
version: 0.8.1
|
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
|
+
date: 2009-11-12 00:00:00 +01:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -139,5 +139,5 @@ specification_version: 3
|
|
139
139
|
summary: Apache Ivy dependency manager wrapper for ruby (see {Apache Ivy}[http://ant.apache.org/ivy/index.html] for more information)
|
140
140
|
test_files:
|
141
141
|
- test/test_ivy4r.rb
|
142
|
-
- test/ivy/test_target.rb
|
143
142
|
- test/ivy/test_targets.rb
|
143
|
+
- test/ivy/test_target.rb
|