Rake::PackageTask.new("rake", "1.2.3") do |p|
p.need_tar = true
p.package_files.include("lib/**/*.rb")
end
but when I run rake --tasks, there are still no tasks related to
packaging. I googled for a while and I can't solve this puzzle. Please
help.
With your rake file, I get:
$ rake --tasks
(in C:/Documents and Settings/BA2828/My Documents/pgm/ruby/pkgtask)
rake clobber_package # Remove package products
rake package # Build all the packages
rake repackage # Force a rebuild of the package files
$ rake --tasks
(in C:/Documents and Settings/BA2828/My Documents/pgm/ruby/pkgtask)
rake clobber_package # Remove package products
rake package # Build all the packages
rake repackage # Force a rebuild of the package files
--
-- Jim Weirich
Thanks for the inspiration! I double checked my code and found my silly
silly mistake. I put package tasks inside another (empty) task. Shame on
me!