Skip to content

Commit

Permalink
allow to force extension building - to emulate the same building proc…
Browse files Browse the repository at this point in the history
…ess as with RG

... cause otherwise locally .jar can be built simply by using the drivers from the repo
  • Loading branch information
kares committed Apr 17, 2015
1 parent 0da46de commit b2b85b6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions Gemfile
Expand Up @@ -22,6 +22,11 @@ if defined?(JRUBY_VERSION) && JRUBY_VERSION < '1.7.0'
gem 'jruby-openssl', :platform => :jruby
end

group :default do
gem 'jar-dependencies', '>= 0.1.9', :require => nil, :platform => :jruby
gem 'ruby-maven', '~> 3.1.1.0.11', :require => nil, :platform => :jruby, :group => :development
end if ENV['BUILD_EXT_MAVEN'] == 'true'

gem 'rake', '~> 10.4.2', :require => nil
gem 'appraisal', '~> 0.5.2', :require => nil

Expand Down
7 changes: 5 additions & 2 deletions Rakefile
Expand Up @@ -217,8 +217,11 @@ if defined? JRUBY_VERSION
driver_jars
end

driver_jars = get_driver_jars_maven.call
driver_jars = get_driver_jars_local.call
if ENV['RUBYARCHDIR'] || ENV['BUILD_EXT_MAVEN'] == 'true'
driver_jars = get_driver_jars_maven.call
else
driver_jars = get_driver_jars_local.call
end

classpath = []
[ 'java.class.path', 'sun.boot.class.path' ].each do |key|
Expand Down

0 comments on commit b2b85b6

Please sign in to comment.