Top Level Namespace

Defined Under Namespace

Modules: Jars

Instance Method Summary collapse

Instance Method Details

#require_jar(*args) ⇒ Object



388
389
390
391
392
393
394
395
396
397
# File 'lib/jar_dependencies.rb', line 388

def require_jar( *args )
  return nil unless Jars.require?
  result = Jars.require_jar( *args )
  if result.is_a? String
    Jars.warn { "--- jar coordinate #{args[0..-2].join( ':' )} already loaded with version #{result} - omit version #{args[-1]}" }
    Jars.debug { "    try to load from #{caller.join("\n\t")}" }
    return false
  end
  result
end