summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/Rakefile b/Rakefile
index a0b6dbd..b8f37ff 100644
--- a/Rakefile
+++ b/Rakefile
@@ -10,11 +10,9 @@ Rake::TestTask.new(:test) do |t|
t.warning = true
end
-spec = eval File.read("psych.gemspec")
-
if RUBY_PLATFORM =~ /java/
require 'rake/javaextensiontask'
- Rake::JavaExtensionTask.new("psych", spec) do |ext|
+ Rake::JavaExtensionTask.new("psych") do |ext|
require 'maven/ruby/maven'
# uses Mavenfile to write classpath into pkg/classpath
# and tell maven via system properties the snakeyaml version
@@ -28,6 +26,7 @@ if RUBY_PLATFORM =~ /java/
end
else
require 'rake/extensiontask'
+ spec = eval File.read("psych.gemspec")
Rake::ExtensionTask.new("psych", spec) do |ext|
ext.lib_dir = File.join(*['lib', ENV['FAT_DIR']].compact)
ext.cross_compile = true