Module: Naether

Defined in:
lib/naether/java.rb,
lib/naether.rb,
lib/naether/maven.rb,
lib/naether/runtime.rb,
lib/naether/notation.rb,
lib/naether/bootstrap.rb,
lib/naether/java/ruby.rb,
lib/naether/java/jruby.rb,
lib/naether/configuration.rb

Overview

Author:

  • Michael Guymon

Defined Under Namespace

Classes: Bootstrap, Configurator, Java, Maven, Notation, Runtime

Constant Summary collapse

Configuration =
Naether::Configurator.new

Class Method Summary collapse

Class Method Details

.bootstrap_dependencies(dep_file = nil) ⇒ Object

List of Java dependencies needed to bootstrap Naether

Parameters:

  • dep_file (String) (defaults to: nil)

    path

See Also:

  • {Naether{Naether::Bootstrap{Naether::Bootstrap#dependencies}


34
35
36
37
# File 'lib/naether.rb', line 34

def bootstrap_dependencies( dep_file=nil )
  require "#{File.dirname(__FILE__)}/naether/bootstrap"
  Naether::Bootstrap.dependencies( dep_file )
end

.createObject



57
58
59
60
# File 'lib/naether.rb', line 57

def create
  require "#{File.dirname(__FILE__)}/naether/runtime"
  Naether::Runtime.new
end

.create_from_jars(jars) ⇒ Naether

Loads all jars creates a new instance of Naether

Parameters:

  • jars (Array<String>)

    of paths

Returns:



51
52
53
54
55
# File 'lib/naether.rb', line 51

def create_from_jars( jars )
  require "#{File.dirname(__FILE__)}/naether/java"
  Naether::Java.internal_load_paths( jars )
  create
end

.platformObject

Helper for platform detection



42
43
44
# File 'lib/naether.rb', line 42

def platform
  Naether::Configuration.platform
end