1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

Minor rake cleanup

This commit is contained in:
Evan Phoenix 2011-11-22 15:07:19 -08:00
parent 80eb913b1b
commit 3f95ed35b7
4 changed files with 9 additions and 3 deletions

View file

@ -6,5 +6,7 @@
require 'rubygems'
IS_JRUBY = defined?(RUBY_ENGINE) ? RUBY_ENGINE == "jruby" : false
# load rakefile extensions (tasks)
Dir['tasks/*.rake'].sort.each { |f| load f }

View file

@ -1,4 +1,4 @@
if ENV['JAVA']
if IS_JRUBY
require 'rake/javaextensiontask'

View file

@ -1,4 +1,4 @@
if !ENV['JAVA']
unless IS_JRUBY
# use rake-compiler for building the extension
require 'rake/extensiontask'

View file

@ -17,4 +17,8 @@ file 'ext/puma_http11/org/jruby/puma/Http11Parser.java' => ['ext/puma_http11/htt
end
end
task :ragel => (defined?(JRUBY_VERSION) ? 'ext/puma_http11/org/jruby/puma/Http11Parser.java' : 'ext/puma_http11/http11_parser.c')
if IS_JRUBY
task :ragel => 'ext/puma_http11/org/jruby/puma/Http11Parser.java'
else
task :ragel => 'ext/puma_http11/http11_parser.c'
end