mirror of https://github.com/sbt/sbt.git
test for separate configuration of doc sources
This commit is contained in:
parent
fcdcdb4eaa
commit
9ebf809259
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
object A {
|
||||
/**
|
||||
* @param i An argument
|
||||
*/
|
||||
def x(i: Int) = 3
|
||||
}
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
object B {
|
||||
/**
|
||||
* @notparam i An argument
|
||||
*/
|
||||
def x(i: Int) = 3
|
||||
}
|
||||
|
|
@ -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
|
||||
Loading…
Reference in New Issue