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|
42
42
task . test_files = test_files . map { |path | path . sub ( 'src/test/ruby/' , '' ) }
43
43
task . verbose = true
44
44
task . loader = :direct
45
+ task . ruby_opts = [ '-C' , 'src/test/ruby' , '-rbundler/setup' ]
45
46
end
46
47
task :test => 'lib/jopenssl.jar'
47
48
Original file line number Diff line number Diff line change 10
10
11
11
puts Java ::OrgBouncycastleJceProvider ::BouncyCastleProvider . new . info
12
12
else
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
15
16
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
17
18
raise "bcpkix jar not found" unless jar ; $CLASSPATH << jar
18
19
end if defined? JRUBY_VERSION
19
20
You can’t perform that action at this time.
0 commit comments