@@ -8,7 +8,7 @@ import scales.report.{ScalesHtmlWriter, CoberturaXmlWriter, ScalesXmlWriter}
8
8
9
9
object ScootSbtPlugin extends Plugin {
10
10
11
- val scalesReportDir = SettingKey [File ](" scoot-report-dir" )
11
+ val scootReportDir = SettingKey [File ](" scoot-report-dir" )
12
12
13
13
lazy val Scoot = config(" scoot" )
14
14
lazy val ScootTest = config(" scoot-test" ) extend Scoot
@@ -17,7 +17,7 @@ object ScootSbtPlugin extends Plugin {
17
17
inConfig(Scoot )(Defaults .compileSettings) ++
18
18
inConfig(ScootTest )(Defaults .testSettings) ++
19
19
Seq (
20
- scalesReportDir <<= crossTarget / " coverage-report" ,
20
+ scootReportDir <<= crossTarget / " coverage-report" ,
21
21
22
22
ivyConfigurations ++= Seq (Scoot , ScootTest ),
23
23
@@ -31,8 +31,8 @@ object ScootSbtPlugin extends Plugin {
31
31
32
32
scalacOptions in Scoot <++= (name in Scoot , baseDirectory in Scoot , update) map {
33
33
(n, b, report) =>
34
- val scalesDeps = report matching configurationFilter(" scoot" )
35
- scalesDeps .find(_.getAbsolutePath.contains(" scalac-scoot-plugin" )) match {
34
+ val scootDeps = report matching configurationFilter(" scoot" )
35
+ scootDeps .find(_.getAbsolutePath.contains(" scalac-scoot-plugin" )) match {
36
36
case None => throw new Exception (" Fatal: scalac-scoot-plugin not in libraryDependencies" )
37
37
case Some (classpath) =>
38
38
Seq (
@@ -55,13 +55,13 @@ object ScootSbtPlugin extends Plugin {
55
55
56
56
internalDependencyClasspath in Scoot <<= (internalDependencyClasspath in Compile ),
57
57
internalDependencyClasspath in ScootTest <<= (internalDependencyClasspath in Test , internalDependencyClasspath in ScootTest , classDirectory in Compile ) map {
58
- (testDeps, scalesDeps , oldClassDir) =>
59
- scalesDeps ++ testDeps.filter(_.data != oldClassDir)
58
+ (testDeps, scootDeps , oldClassDir) =>
59
+ scootDeps ++ testDeps.filter(_.data != oldClassDir)
60
60
},
61
61
62
62
testOptions in ScootTest <+= testsCleanup,
63
63
64
- // make scales config the same as scalesTest config
64
+ // make scoot config the same as scootTest config
65
65
test in Scoot <<= (test in ScootTest )
66
66
)
67
67
}
@@ -94,13 +94,13 @@ object ScootSbtPlugin extends Plugin {
94
94
targetDirectory.mkdirs()
95
95
96
96
println(" Generating ScootXML report..." )
97
- ScalesXmlWriter .write(coverage, targetDirectory)
97
+ ScootXmlWriter .write(coverage, targetDirectory)
98
98
99
99
println(" Generating CoberturaXML report..." )
100
100
CoberturaXmlWriter .write(coverage, targetDirectory)
101
101
102
102
println(" Generating ScootHTML report..." )
103
- ScalesHtmlWriter .write(coverage, targetDirectory)
103
+ ScootXmlWriter .write(coverage, targetDirectory)
104
104
}
105
105
}
106
106
}
0 commit comments