Author: boisvert
Date: Tue Nov 17 17:23:35 2009
New Revision: 881389
URL: http://svn.apache.org/viewvc?rev=881389&view=rev
Log:
Fix doc for package_as_XXX_spec
Modified:
buildr/trunk/lib/buildr/packaging/package.rb
Modified: buildr/trunk/lib/buildr/packaging/package.rb
URL:
http://svn.apache.org/viewvc/buildr/trunk/lib/buildr/packaging/package.rb?rev=881389&r1=881388&r2=881389&view=diff
==============================================================================
--- buildr/trunk/lib/buildr/packaging/package.rb (original)
+++ buildr/trunk/lib/buildr/packaging/package.rb Tue Nov 17 17:23:35 2009
@@ -125,9 +125,10 @@
# The file name is determined from the specification passed to the package
method, however, some
# packagers need to override this. For example, package(:sources)
produces a file with the extension
# 'zip' and the classifier 'sources'. If you need to overwrite the
default implementation, you should
- # also include a method named package_as_[type]_respec. For example:
+ # also include a method named package_as_[type]_spec. For example:
# def package_as_sources_spec(spec) #:nodoc:
- # { :type=>:zip, :classifier=>'sources' }.merge(spec)
+ # # Change the source distribution to .jar extension
+ # spec.merge({ :type=>:jar, :classifier=>'sources' })
# end
def package(*args)
spec = Hash === args.last ? args.pop.dup : {}