test for separate configuration of doc sources

This commit is contained in:
Mark Harrah 2011-08-23 19:51:51 -04:00
parent fcdcdb4eaa
commit 9ebf809259
4 changed files with 20 additions and 1 deletions

View File

@ -187,7 +187,7 @@ object Defaults extends BuildCommon
run <<= runTask(fullClasspath, mainClass in run, runner in run),
runMain <<= runMainTask(fullClasspath, runner in run),
scaladocOptions in GlobalScope :== Nil,
scaladocOptions <<= scaladocOptions or scalacOptions.identity,
scaladocOptions in doc <<= scaladocOptions in doc or scalacOptions.identity,
copyResources <<= copyResourcesTask
)

View File

@ -0,0 +1,6 @@
object A {
/**
* @param i An argument
*/
def x(i: Int) = 3
}

View File

@ -0,0 +1,6 @@
object B {
/**
* @notparam i An argument
*/
def x(i: Int) = 3
}

View File

@ -0,0 +1,7 @@
> 'set scaladocOptions in doc += "-Xfatal-warnings"'
-> doc
> 'set sources in (Compile, doc) <<= sources in Compile map { _.filter(_.getName contains "A") }'
> doc