Class: Buildr::Doc::Javadoc
Overview
A convenient task for creating Javadocs from the project’s compile task. Minimizes all the hard work to calling #from and #using.
For example:
doc.from(projects('myapp:foo', 'myapp:bar')).using(:windowtitle=>'My App')
Or, short and sweet:
desc 'My App'
define 'myapp' do
. . .
doc projects('myapp:foo', 'myapp:bar')
end
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Buildr::Doc::Base
Instance Method Details
#generate(sources, target, options = {}) ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/buildr/java/doc.rb', line 47 def generate(sources, target, = {}) = .dup [trace?(:javadoc) ? :verbose : :quiet] = true [:output] = target Java::Commands.javadoc(*sources.flatten.uniq, ) end |