summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-04-28 15:19:42 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-04-28 15:24:54 -0700
commit99f1ba0be53c3784560a6341453f4c0c69cfa678 (patch)
treee9cd0038b2d6c1891885b6e2e12536fe54563839 /Rakefile
parent8a6672544ab9b3c96f01a8d2d1fc5344db3cc194 (diff)
downloadpsych-99f1ba0be53c3784560a6341453f4c0c69cfa678.zip
add jruby psych loading hacks to the Rakefile
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index f38a95d..17e13af 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,5 +1,14 @@
# -*- ruby -*-
+if RUBY_PLATFORM =~ /java/
+ require './lib/psych.jar'
+ require 'jruby'
+
+ Java::psych.PsychLibrary.new.load(JRuby.runtime, true)
+ $LOADED_FEATURES << "psych.jar"
+end
+
+require 'psych'
require 'rubygems'
require 'hoe'