Permalink
Browse files

* Create "pkg" directory if it is missing.

  • Loading branch information...
1 parent 98071d9 commit c830c4b2c3096c3ca9756e5203101b50338ebbce @donv donv committed Dec 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 gems/jruby-jars/Rakefile
View
4 gems/jruby-jars/Rakefile
@@ -8,7 +8,9 @@ JRUBY_COMPLETE_JAR = 'pkg/jruby-complete-#{JRUBY_SRC_VERSION}.jar'
task :default => :package
-file JRUBY_COMPLETE_JAR => "pkg" do
+directory 'pkg'
+
+file JRUBY_COMPLETE_JAR => :pkg do
pkg_dir = File.expand_path('pkg')
fail "Run `ant dist' first to create complete jar" unless File.exist?("../../dist/jruby-complete-#{JRUBY_SRC_VERSION}.jar")
cp "../../dist/jruby-complete-#{JRUBY_SRC_VERSION}.jar", pkg_dir

0 comments on commit c830c4b

Please sign in to comment.