Skip to content

Commit

Permalink
Different build tasks for jruby and mri
Browse files Browse the repository at this point in the history
  • Loading branch information
durran committed Jun 20, 2013
1 parent 3051534 commit eb40859
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ end
RSpec::Core::RakeTask.new(:spec)
RSpec::Core::RakeTask.new(:rspec)

# Ensure when releasing to build the native and the java versions separately
# with rvm.
task :build => :clean_all do
system "gem build bson.gemspec"
if jruby?
task :build => [ :clean_all, :compile ] do
system "gem build bson.gemspec"
end
else
task :build => :clean_all do
system "gem build bson.gemspec"
end
end

task :clean_all => :clean do
Expand Down

0 comments on commit eb40859

Please sign in to comment.