Skip to content

Commit

Permalink
Merge pull request #246 from nobu/jruby-extdir
Browse files Browse the repository at this point in the history
Fix jar file path
  • Loading branch information
nobu committed Nov 2, 2023
2 parents cbc34bb + 069e18e commit 91ee281
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ lib/racc/parser-text.rb
tags
tmp
target
lib/racc/cparse-jruby.jar
lib/java/racc/cparse-jruby.jar
Gemfile.lock
html
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if jruby?
require "rake/javaextensiontask"
extask = Rake::JavaExtensionTask.new("cparse") do |ext|
jruby_home = RbConfig::CONFIG['prefix']
lib_dir = (ext.lib_dir << '/#{ext.platform}/racc')
lib_dir = (ext.lib_dir << "/#{ext.platform}/racc")
ext.ext_dir = 'ext/racc'
# source/target jvm
ext.source_version = '1.8'
Expand Down
2 changes: 1 addition & 1 deletion racc.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ DESC
s.extra_rdoc_files = ["README.ja.rdoc", "README.rdoc"]

if RUBY_PLATFORM =~ /java/
s.files << 'lib/racc/cparse-jruby.jar'
s.files << 'lib/java/racc/cparse-jruby.jar'
s.platform = 'java'
else
s.extensions = ["ext/racc/cparse/extconf.rb"]
Expand Down

0 comments on commit 91ee281

Please sign in to comment.