Permalink
Browse files

Blow up with a helpful message if run under MRI

  • Loading branch information...
1 parent ff16e62 commit e407632f5a61320ea0743f4c65584c20f539d9ec @nicksieger nicksieger committed Jan 26, 2009
Showing with 8 additions and 1 deletion.
  1. +8 −1 Rakefile
View
@@ -1,9 +1,11 @@
#--
-# Copyright 2007-2008 Sun Microsystems, Inc.
+# Copyright 2007-2009 Sun Microsystems, Inc.
# This source code is available under the MIT license.
# See the file LICENSE.txt for details.
#++
+raise "JRuby-Rack must be built with JRuby: try again with `jruby -S rake'" unless defined?(JRUBY_VERSION)
+
require 'rake/clean'
def compile_classpath
@@ -113,3 +115,8 @@ task :install => "target/jruby-rack-#{JRuby::Rack::VERSION}.jar" do |t|
cp t.prerequisites.first, repos_dir
cp "pom.xml", "#{repos_dir}/jruby-rack-#{JRuby::Rack::VERSION}.pom"
end
+
+task :classpaths do
+ puts "compile_classpath:",*compile_classpath
+ puts "test_classpath:", *test_classpath
+end

0 comments on commit e407632

Please sign in to comment.