File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ Rake::TestTask.new do |task|
4242 task . test_files = test_files . map { |path | path . sub ( 'src/test/ruby/' , '' ) }
4343 task . verbose = true
4444 task . loader = :direct
45+ task . ruby_opts = [ '-C' , 'src/test/ruby' , '-rbundler/setup' ]
4546end
4647task :test => 'lib/jopenssl.jar'
4748
Original file line number Diff line number Diff line change 1010
1111 puts Java ::OrgBouncycastleJceProvider ::BouncyCastleProvider . new . info
1212else
13- $CLASSPATH << 'pkg/classes'
14- jar = Dir [ 'lib/org/bouncycastle/**/bcprov-*.jar' ] . first
13+ base_dir = File . expand_path ( '../../..' , File . dirname ( __FILE__ ) )
14+ $CLASSPATH << File . join ( base_dir , 'pkg/classes' )
15+ jar = Dir [ File . join ( base_dir , 'lib/org/bouncycastle/**/bcprov-*.jar' ) ] . first
1516 raise "bcprov jar not found" unless jar ; $CLASSPATH << jar
16- jar = Dir [ 'lib/org/bouncycastle/**/bcpkix-*.jar' ] . first
17+ jar = Dir [ File . join ( base_dir , 'lib/org/bouncycastle/**/bcpkix-*.jar' ) ] . first
1718 raise "bcpkix jar not found" unless jar ; $CLASSPATH << jar
1819end if defined? JRUBY_VERSION
1920
You can’t perform that action at this time.
0 commit comments