Permalink
Browse files

Do a better job of ensuring BCrypt.java gets compiled.

  • Loading branch information...
1 parent 5e8c83f commit 17b18eab80d82ec39c36bfadc461b2e092342002 @codahale committed Aug 13, 2009
Showing with 6 additions and 2 deletions.
  1. +6 −2 Rakefile
View
@@ -27,7 +27,8 @@ CLEAN.include(
)
CLOBBER.include(
"ext/mri/Makefile",
- "doc/coverage"
+ "doc/coverage",
+ "pkg"
)
task :default => [:compile, :spec]
@@ -79,7 +80,10 @@ spec = Gem::Specification.new do |s|
s.homepage = "http://bcrypt-ruby.rubyforge.org"
s.rubyforge_project = "bcrypt-ruby"
end
-task :gem => ["compile:jruby"]
+
+file 'ext/jruby/bcrypt_jruby/BCrypt.class' => ["ext/jruby/bcrypt_jruby/BCrypt.java"] do
+ Rake::Task['compile:jruby'].invoke
+end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_zip = true

0 comments on commit 17b18ea

Please sign in to comment.