Sha256: 11939ca127ecf33d9792d10844b2a1923e6dd713fbe22e9911fed6f02a45ab28

Contents?: true

Size: 614 Bytes

Versions: 16

Compression:

Stored size: 614 Bytes

Contents

require 'bundler'
Bundler::GemHelper.install_tasks

require 'rake/javaextensiontask'

Rake::JavaExtensionTask.new('sandbox') do |ext|
  jruby_home = RbConfig::CONFIG['prefix']
  ext.ext_dir = 'ext/java'
  ext.lib_dir = 'lib/sandbox'
  jars = ["#{jruby_home}/lib/jruby.jar"] + FileList['lib/*.jar']
  ext.classpath = jars.map { |x| File.expand_path(x) }.join(':')
end

require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec) do |t|
  t.pattern = 'spec/**/*_spec.rb'
  t.rspec_opts = ['--backtrace']
end

# Make sure the jar is up to date before running specs
task :spec => :compile

task :default => :spec

Version data entries

16 entries across 16 versions & 3 rubygems

Version Path
xplenty-jruby_sandbox-0.2.9-java Rakefile
xplenty-jruby_sandbox-0.2.8-java Rakefile
xplenty-jruby_sandbox-0.2.7-java Rakefile
xplenty-jruby_sandbox-0.2.6-java Rakefile
xplenty-jruby_sandbox-0.2.5-java Rakefile
xplenty-jruby_sandbox-0.2.4-java Rakefile
jruby_sandbox-0.2.3-java Rakefile
jruby-safe-0.2.2-java Rakefile
jruby_sandbox-0.2.2-java Rakefile
jruby_sandbox-0.2.1-java Rakefile
jruby_sandbox-0.2.0-java Rakefile
jruby_sandbox-0.1.4-java Rakefile
jruby_sandbox-0.1.3-java Rakefile
jruby_sandbox-0.1.2-java Rakefile
jruby_sandbox-0.1.1-java Rakefile
jruby_sandbox-0.1.0-java Rakefile