Skip to content

Commit 3f90a0d

Browse files
committed
Move Java version to Java directory
1 parent 37e9279 commit 3f90a0d

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name = "stringio"
66
if RUBY_PLATFORM =~ /java/
77
require 'rake/javaextensiontask'
88
extask = Rake::JavaExtensionTask.new("stringio") do |ext|
9-
require 'maven/ruby/maven'
9+
ext.lib_dir << "/#{ext.platform}"
1010
ext.source_version = '1.8'
1111
ext.target_version = '1.8'
1212
ext.ext_dir = 'ext/java'
File renamed without changes.

stringio.gemspec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ Gem::Specification.new do |s|
2121
s.files = ["README.md"]
2222
jruby = true if Gem::Platform.new('java') =~ s.platform or RUBY_ENGINE == 'jruby'
2323
if jruby
24-
s.files += ["lib/stringio.rb", "lib/stringio.jar"]
24+
s.require_paths = "lib/java"
25+
s.files += ["lib/java/stringio.rb", "lib/java/stringio.jar"]
2526
s.platform = "java"
2627
else
2728
s.extensions = ["ext/stringio/extconf.rb"]

0 commit comments

Comments
 (0)