summaryrefslogtreecommitdiff
path: root/test/files
diff options
context:
space:
mode:
authorGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-03-05 15:07:14 +0000
committerGeoffrey Washburn <geoffrey.washburn@epfl.ch>2008-03-05 15:07:14 +0000
commit1fcc24dd92a885b44e242d57764105c871979fe7 (patch)
treeca94c292242b116288d16921dec319f50c96b445 /test/files
parent3b8407a9ae6ab9c888e4458c1ef443b533341fd2 (diff)
downloadscala-1fcc24dd92a885b44e242d57764105c871979fe7.tar.gz
scala-1fcc24dd92a885b44e242d57764105c871979fe7.tar.bz2
scala-1fcc24dd92a885b44e242d57764105c871979fe7.zip
ScalaDoc, etc.
of Settings. All doc related settings have been commented out of Settings (soon to be removed) and are now found in doc.Settings. -Ydoc is no more. I believe I have updated the scaladoc Ant task correctly, but it is not clear how to test it.
Diffstat (limited to 'test/files')
-rw-r--r--test/files/run/docgenerator.scala16
1 files changed, 9 insertions, 7 deletions
diff --git a/test/files/run/docgenerator.scala b/test/files/run/docgenerator.scala
index d36700f82b..4792106456 100644
--- a/test/files/run/docgenerator.scala
+++ b/test/files/run/docgenerator.scala
@@ -21,7 +21,7 @@ object Test {
private def test1(tmpDir: File) {
def testOptions(inFile: File, outDirName: String, opts: String*) {
val outDir = createDir(tmpDir, outDirName)
- val args = Array.concat(Array("-Ydoc", "-d", outDir.getPath, inFile.getPath), opts.toArray:Array[String])
+ val args = Array.concat(Array("-d", outDir.getPath, inFile.getPath), opts.toArray:Array[String])
if (MainDoc.main0(args)) {
for (name <- List("all-classes.html", "index.html")) {
val outFile = new File(outDir, name)
@@ -91,7 +91,7 @@ object Foo2 {
f
}
val outDir = createDir(tmpDir, "annots1")
- val args = Array.concat(Array("-Ydoc", "-d", outDir.getPath, inFile.getPath))
+ val args = Array.concat(Array("-d", outDir.getPath, inFile.getPath))
if (MainDoc.main0(args)) {
for (name <- List("all-classes.html", "index.html")) {
val outFile = new File(outDir, name)
@@ -112,11 +112,13 @@ object Foo2 {
def error(msg: String) { Console.err.println(msg) }
var reporter: ConsoleReporter = _
def process(args: Array[String]) {
- val settings = new Settings(error)
- reporter = new ConsoleReporter(settings)
- val command = new CompilerCommand(List.fromArray(args), settings, error, false)
+ val docSettings = new scala.tools.nsc.doc.Settings(error)
+ reporter = new ConsoleReporter(docSettings)
+ val command = new CompilerCommand(List.fromArray(args), docSettings, error, false)
try {
- object compiler extends Global(command.settings, reporter)
+ object compiler extends Global(command.settings, reporter) {
+ override val onlyPresentation = true
+ }
if (reporter.hasErrors) {
reporter.flush()
return
@@ -125,7 +127,7 @@ object Foo2 {
run compile command.files
object generator extends DefaultDocDriver {
lazy val global: compiler.type = compiler
- def settings = command.settings
+ lazy val settings = docSettings
}
generator process run.units
reporter.printSummary()