mirror of
https://github.com/sbt/sbt.git
synced 2026-10-07 18:43:31 +02:00
test for separate configuration of doc sources
This commit is contained in:
+1
-1
@@ -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
|
||||
Reference in New Issue
Block a user