Module: Buildr::Javadoc
Overview
Methods added to Project for creating JavaDoc documentation.
Defined Under Namespace
Classes: JavadocTask
Instance Method Summary collapse
-
#javadoc(*sources, &block) ⇒ Object
:call-seq: javadoc(*sources) => JavadocTask.
Methods included from Extension
Instance Method Details
#javadoc(*sources, &block) ⇒ Object
:call-seq:
javadoc(*sources) => JavadocTask
This method returns the project’s Javadoc task. It also accepts a list of source files, directories and projects to include when generating the Javadocs.
By default the Javadoc task uses all the source directories from compile.sources and generates Javadocs in the target/javadoc directory. This method accepts sources and adds them by calling JavadocsTask#from.
For example, if you want to generate Javadocs for a given project that includes all source files in two of its sub-projects:
javadoc projects('myapp:foo', 'myapp:bar').using(:windowtitle=>'Docs for foo and bar')
303 304 305 |
# File 'lib/buildr/java/compiler.rb', line 303 def javadoc(*sources, &block) task('javadoc').from(*sources).enhance &block end |