Method: Jars.require_jars_lock!

Defined in:
lib/jar_dependencies.rb

.require_jars_lock!(scope = :runtime) ⇒ Object

[View source]

187
188
189
190
191
192
193
194
195
196
197
# File 'lib/jar_dependencies.rb', line 187

def require_jars_lock!( scope = :runtime )
  if jars_lock = Jars.lock_path
    @@jars_lock = jars_lock
    # funny error during spec where it tries to load it again
    # and finds it as gem instead of the LOAD_PATH
    require 'jars/classpath' unless defined? Jars::Classpath
    classpath = Jars::Classpath.new( nil, jars_lock )
    classpath.require( scope )
    no_more_warnings
  end
end