Changeset 6100
- Timestamp:
- 11/23/06 16:02:36
- Files:
-
- trunk/lib/jerbil/java_helper.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jerbil/java_helper.rb
r6097 r6100 82 82 # +:java_opts+:: additional JVM arguments (defaults to ENV['JAVA_OPTS'] 83 83 # +:loggingprops+:: the location of a java.util.logging configuration file. 84 def load_jvm(classpath, build_dir = nil, options = {} ) 84 # +:enableassert+:: wheter to enable assertions (default: enabled) 85 def load_jvm(classpath, build_dir = nil, options = {} ) 86 87 defaultopts = { :enableassert => true } 88 options = defaultopts.merge(options.dup) 89 85 90 #need verbose java exceptions 86 91 $VERBOSE = true … … 93 98 classpath.include(File.join(File.dirname(__FILE__), "../../classloader")) if build_dir 94 99 100 95 101 jvmargs = [] 102 jvmargs << "-ea" if options[:enableassert] 96 103 jvmargs << "-Djava.util.logging.config.file=#{options[:loggingprops].to_s}" if options[:loggingprops] 97 104 … … 122 129 jvmargs.unshift(java_opts) if java_opts 123 130 131 puts jvmargs 124 132 begin 125 133 Rjb::load(classpath.to_cp, jvmargs)
