Skip to content

Commit

Permalink
Move Java version to Java directory
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Nov 4, 2023
1 parent 37e9279 commit 3f90a0d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name = "stringio"
if RUBY_PLATFORM =~ /java/
require 'rake/javaextensiontask'
extask = Rake::JavaExtensionTask.new("stringio") do |ext|
require 'maven/ruby/maven'
ext.lib_dir << "/#{ext.platform}"
ext.source_version = '1.8'
ext.target_version = '1.8'
ext.ext_dir = 'ext/java'
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion stringio.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Gem::Specification.new do |s|
s.files = ["README.md"]
jruby = true if Gem::Platform.new('java') =~ s.platform or RUBY_ENGINE == 'jruby'
if jruby
s.files += ["lib/stringio.rb", "lib/stringio.jar"]
s.require_paths = "lib/java"
s.files += ["lib/java/stringio.rb", "lib/java/stringio.jar"]
s.platform = "java"
else
s.extensions = ["ext/stringio/extconf.rb"]
Expand Down

0 comments on commit 3f90a0d

Please sign in to comment.