Update scalariform (#23778) (#23783)

This commit is contained in:
Arnout Engelen 2017-10-06 10:30:28 +02:00 committed by GitHub
parent 63ccdeec16
commit b1df13d4d4
221 changed files with 1528 additions and 1580 deletions

View file

@ -34,22 +34,18 @@ object SigarLoader {
sigarArtifact := {
val report = update.value
val artifactList = report.matching(
moduleFilter(organization = sigarLoader.organization, name = sigarLoader.name)
)
moduleFilter(organization = sigarLoader.organization, name = sigarLoader.name))
require(artifactList.size == 1, "Expecting single artifact, while found: " + artifactList)
artifactList.head
},
sigarFolder := target.value / "native",
sigarOptions := "-javaagent:" + sigarArtifact.value + "=" + sigarFolderProperty + "=" + sigarFolder.value,
//
fork in Test := true
) ++ (
fork in Test := true) ++ (
// Invoke Sigar agent at JVM init time, to extract and load native Sigar library.
if (sigarTestEnabled) Seq(
javaOptions in Test += sigarOptions.value
)
else Seq()
)
javaOptions in Test += sigarOptions.value)
else Seq())
}
}