Skip to content

Commit

Permalink
Hack this to use modules in classpath for now
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Jan 22, 2024
1 parent b260d48 commit 49ecb57
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rakelib/commands.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ rescue Exception => ex
end
require 'rbconfig'

JRUBY_CLASSPATH = Dir["lib/modules/*.jar"].join(':')

def initialize_paths
ant.path(:id => "jruby.execute.classpath") do
pathelement :path => "lib/jruby.jar"
pathelement :path => JRUBY_CLASSPATH
end

ant.path(:id => "test.class.path") do
Expand All @@ -18,7 +20,7 @@ def initialize_paths
pathelement :path => File.join(BUILD_LIB_DIR, 'bsf.jar')
pathelement :path => File.join(BUILD_LIB_DIR, 'commons-logging.jar')
# pathelement :path => "${java.class.path}"/>
pathelement :path => File.join(LIB_DIR, 'jruby.jar')
pathelement :path => JRUBY_CLASSPATH
pathelement :location => TEST_CLASSES_DIR
pathelement :path => File.join(TEST_DIR, 'jruby', 'requireTest.jar')
pathelement :location => TEST_DIR
Expand All @@ -36,7 +38,7 @@ def jruby(java_options = {}, &code)
puts "JAVA options: #{java_options.inspect}"

ant.java(java_options) do
classpath :path => 'lib/jruby.jar'
classpath :path => JRUBY_CLASSPATH
sysproperty :key => "jruby.home", :value => BASE_DIR
instance_eval(&code) if block_given?
end
Expand Down

0 comments on commit 49ecb57

Please sign in to comment.