jbundler 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jbundler/aether.rb +7 -7
- data/lib/jbundler.jar +0 -0
- metadata +7 -7
data/lib/jbundler/aether.rb
CHANGED
@@ -28,7 +28,7 @@ module JBundler
|
|
28
28
|
def self.setup_classloader
|
29
29
|
require 'java'
|
30
30
|
|
31
|
-
maven_home = File.dirname(File.dirname(Gem.bin_path('ruby-maven',
|
31
|
+
maven_home = File.dirname(File.dirname(Gem.bin_path('ruby-maven',
|
32
32
|
'rmvn')))
|
33
33
|
# TODO reduce to the libs which are really needed
|
34
34
|
Dir.glob(File.join(maven_home, 'lib', "*jar")).each {|path| require path }
|
@@ -55,7 +55,7 @@ module JBundler
|
|
55
55
|
@aether.add_mirror( config.mirror ) if config.mirror
|
56
56
|
@aether.offline = config.offline
|
57
57
|
@aether.user_settings = config.settings if config.settings
|
58
|
-
@aether.local_repository = config.local_repository if config.local_repository
|
58
|
+
@aether.local_repository = java.io.File.new(config.local_repository) if config.local_repository
|
59
59
|
rescue NativeException => e
|
60
60
|
e.cause.print_stack_trace
|
61
61
|
raise e
|
@@ -82,18 +82,18 @@ module JBundler
|
|
82
82
|
raise e
|
83
83
|
end
|
84
84
|
|
85
|
-
def classpath
|
85
|
+
def classpath
|
86
86
|
if artifacts.empty?
|
87
87
|
''
|
88
88
|
else
|
89
89
|
@aether.classpath
|
90
90
|
end
|
91
91
|
end
|
92
|
-
|
92
|
+
|
93
93
|
def classpath_array
|
94
94
|
classpath.split(/#{File::PATH_SEPARATOR}/)
|
95
95
|
end
|
96
|
-
|
96
|
+
|
97
97
|
def repositories
|
98
98
|
@aether.repositories
|
99
99
|
end
|
@@ -116,6 +116,6 @@ module JBundler
|
|
116
116
|
e.cause.print_stack_trace
|
117
117
|
raise e
|
118
118
|
end
|
119
|
-
|
119
|
+
|
120
120
|
end
|
121
|
-
end
|
121
|
+
end
|
data/lib/jbundler.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: jbundler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.4.
|
5
|
+
version: 0.4.2
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Christian Meier
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-04-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-maven
|
@@ -121,15 +121,15 @@ dependencies:
|
|
121
121
|
name: copyright-header
|
122
122
|
version_requirements: !ruby/object:Gem::Requirement
|
123
123
|
requirements:
|
124
|
-
- -
|
124
|
+
- - '='
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
version: 1.0.
|
126
|
+
version: 1.0.8
|
127
127
|
none: false
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - '='
|
131
131
|
- !ruby/object:Gem::Version
|
132
|
-
version: 1.0.
|
132
|
+
version: 1.0.8
|
133
133
|
none: false
|
134
134
|
prerelease: false
|
135
135
|
type: :development
|