Method: JavaClass::Classpath::Factory#environment_classpath
- Defined in:
- lib/javaclass/classpath/factory.rb
#environment_classpath(cp = CompositeClasspath.new) ⇒ Object
Parse and set the system classpath. Needs JAVA_HOME to be set. Uses additional environment CLASSPATH if set. Adds the classpath to the optional cp element else creates a CompositeClasspath.
24 25 26 |
# File 'lib/javaclass/classpath/factory.rb', line 24 def environment_classpath(cp=CompositeClasspath.new) full_classpath(ENV['JAVA_HOME'], ENV['CLASSPATH'], cp) end |