diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-04-29 12:35:17 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-04-29 12:35:17 -0700 |
commit | 0503403c3b6db8ee1907e279946833133396c9a9 (patch) | |
tree | 78d56bbd453649fd606307e308c4b7cf6fcebb47 /Rakefile | |
parent | 07c95f862b7cedfae0706aa9aa32bf627673f151 (diff) | |
download | psych-0503403c3b6db8ee1907e279946833133396c9a9.tar.gz |
don't add the jar file to the manifest
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 20 |
1 files changed, 19 insertions, 1 deletions
@@ -64,7 +64,25 @@ $hoe = Hoe.spec 'psych' do end end end -$hoe.spec.files << 'lib/psych.jar' + +def gem_build_path + File.join 'pkg', $hoe.spec.full_name +end + +def add_file_to_gem relative_path + target_path = File.join gem_build_path, relative_path + target_dir = File.dirname(target_path) + mkdir_p target_dir unless File.directory?(target_dir) + rm_f target_path + safe_ln relative_path, target_path + $hoe.spec.files.concat [relative_path] +end + +if java? + task gem_build_path => [:compile] do + add_file_to_gem 'lib/psych.jar' + end +end Hoe.add_include_dirs('.:lib/psych') |