summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/ant/Scaladoc.scala
diff options
context:
space:
mode:
authorHeather Miller <heather.miller@epfl.ch>2011-09-17 20:24:26 +0000
committerHeather Miller <heather.miller@epfl.ch>2011-09-17 20:24:26 +0000
commit7343e044153fb5f91028878fe1ddf341f62b37ee (patch)
tree5e2c6a27794c7204ce5cf9ecfdcdd7fc99dd9ee4 /src/compiler/scala/tools/ant/Scaladoc.scala
parentfef6649b31d58e2cc239518cb031d39e1ac58b70 (diff)
downloadscala-7343e044153fb5f91028878fe1ddf341f62b37ee.tar.gz
scala-7343e044153fb5f91028878fe1ddf341f62b37ee.tar.bz2
scala-7343e044153fb5f91028878fe1ddf341f62b37ee.zip
Adds ability to document root package, as well ...
Adds ability to document root package, as well the first cut of an introduction to the API. Contributed by Iain McGinniss during the September doc spree.
Diffstat (limited to 'src/compiler/scala/tools/ant/Scaladoc.scala')
-rw-r--r--src/compiler/scala/tools/ant/Scaladoc.scala15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/ant/Scaladoc.scala b/src/compiler/scala/tools/ant/Scaladoc.scala
index a4593b8f88..253d1dec5d 100644
--- a/src/compiler/scala/tools/ant/Scaladoc.scala
+++ b/src/compiler/scala/tools/ant/Scaladoc.scala
@@ -42,6 +42,7 @@ import scala.tools.nsc.reporters.{Reporter, ConsoleReporter}
* - `addparams`,
* - `deprecation`,
* - `docgenerator`,
+ * - `docrootcontent`,
* - `unchecked`.
*
* It also takes the following parameters as nested elements:
@@ -95,6 +96,9 @@ class Scaladoc extends ScalaMatchingTask {
/** The fully qualified name of a doclet class, which will be used to generate the documentation. */
private var docgenerator: Option[String] = None
+ /** The file from which the documentation content of the root package will be taken */
+ private var docrootcontent: Option[File] = None
+
/** The document title of the generated HTML documentation. */
private var doctitle: Option[String] = None
@@ -273,6 +277,16 @@ class Scaladoc extends ScalaMatchingTask {
docgenerator = Some(input)
}
+ /**
+ * Sets the `docrootcontent` attribute.
+ *
+ * @param input The file from which the documentation content of the root
+ * package will be taken.
+ */
+ def setDocrootcontent(input : File) {
+ docrootcontent = Some(input)
+ }
+
/** Sets the `docversion` attribute.
*
* @param input The value of `docversion`.
@@ -532,6 +546,7 @@ class Scaladoc extends ScalaMatchingTask {
docSettings.deprecation.value = deprecation
docSettings.unchecked.value = unchecked
if (!docgenerator.isEmpty) docSettings.docgenerator.value = docgenerator.get
+ if (!docrootcontent.isEmpty) docSettings.docRootContent.value = docrootcontent.get.getAbsolutePath()
log("Scaladoc params = '" + addParams + "'", Project.MSG_DEBUG)
docSettings processArgumentString addParams