Skip to content

Commit 86f634d

Browse files
committed
Rename sbt dotc/repl abstraction to runCompilerMain
1 parent 179f79f commit 86f634d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

project/Build.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -518,12 +518,12 @@ object Build {
518518
println("Couldn't find scala-library on classpath, please run using script in bin dir instead")
519519
} else {
520520
val dottyLib = packageAll.value("dotty-library")
521-
s"""$java -classpath .:$dottyLib:$scalaLib ${args.mkString(" ")}""".!
521+
s"$java -classpath .:$dottyLib:$scalaLib ${args.mkString(" ")}".!
522522
}
523523
},
524524
run := dotc.evaluated,
525-
dotc := dotDynTask("dotty.tools.dotc.Main").evaluated,
526-
repl := dotDynTask("dotty.tools.repl.Main").evaluated,
525+
dotc := runCompilerMain("dotty.tools.dotc.Main").evaluated,
526+
repl := runCompilerMain("dotty.tools.repl.Main").evaluated,
527527

528528
// enable verbose exception messages for JUnit
529529
testOptions in Test += Tests.Argument(
@@ -617,7 +617,7 @@ object Build {
617617
}
618618
)
619619

620-
def dotDynTask(main: String) = Def.inputTaskDyn {
620+
def runCompilerMain(main: String) = Def.inputTaskDyn {
621621
val dottyLib = packageAll.value("dotty-library")
622622
val args: List[String] = spaceDelimited("<arg>").parsed.toList
623623

0 commit comments

Comments
 (0)