Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

use java.io.file for parsing local_repository config

  • Loading branch information...
commit a64dab577891c065e51bf2af2fba80480457c3c4 1 parent d833687
Stefan Novak slnovak authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 lib/jbundler/aether.rb
14 lib/jbundler/aether.rb
View
@@ -28,7 +28,7 @@ class AetherRuby
def self.setup_classloader
require 'java'
- maven_home = File.dirname(File.dirname(Gem.bin_path('ruby-maven',
+ maven_home = File.dirname(File.dirname(Gem.bin_path('ruby-maven',
'rmvn')))
# TODO reduce to the libs which are really needed
Dir.glob(File.join(maven_home, 'lib', "*jar")).each {|path| require path }
@@ -55,7 +55,7 @@ def initialize( config = Config.new )
@aether.add_mirror( config.mirror ) if config.mirror
@aether.offline = config.offline
@aether.user_settings = config.settings if config.settings
- @aether.local_repository = config.local_repository if config.local_repository
+ @aether.local_repository = java.io.File.new(config.local_repository) if config.local_repository
rescue NativeException => e
e.cause.print_stack_trace
raise e
@@ -82,18 +82,18 @@ def resolve
raise e
end
- def classpath
+ def classpath
if artifacts.empty?
''
else
@aether.classpath
end
end
-
+
def classpath_array
classpath.split(/#{File::PATH_SEPARATOR}/)
end
-
+
def repositories
@aether.repositories
end
@@ -116,6 +116,6 @@ def install(coordinate, file)
e.cause.print_stack_trace
raise e
end
-
+
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.