Skip to content

Remove dotty-repl project from Build.scala #3046

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 0 additions & 39 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -359,45 +359,6 @@ object Build {
)
)

lazy val `dotty-repl` = project.in(file("repl")).
dependsOn(
`dotty-compiler`,
`dotty-compiler` % "test->test"
).
settings(commonNonBootstrappedSettings).
settings(
// set system in/out for repl
connectInput in run := true,
outputStrategy := Some(StdoutOutput),

// enable verbose exception messages for JUnit
testOptions in Test += Tests.Argument(TestFrameworks.JUnit, "-a", "-v"),

resourceDirectory in Test := baseDirectory.value / "test-resources",

run := Def.inputTaskDyn {
val classPath =
(packageAll in `dotty-compiler-bootstrapped`).value("dotty-library") + ":" +
(packageAll in `dotty-compiler-bootstrapped`).value("dotty-interfaces")

val args: Seq[String] = spaceDelimited("<arg>").parsed

val fullArgs = args.span(_ != "-classpath") match {
case (beforeCp, Nil) => beforeCp ++ ("-classpath" :: classPath :: Nil)
case (beforeCp, rest) => beforeCp ++ rest
}

(runMain in Compile).toTask(
s" dotty.tools.repl.Main " + fullArgs.mkString(" ")
)
}.evaluated,

javaOptions ++= (javaOptions in `dotty-compiler`).value,
fork in run := true,
fork in Test := true,
parallelExecution in Test := false
)

lazy val `dotty-doc` = project.in(file("doc-tool")).
dependsOn(`dotty-compiler`, `dotty-compiler` % "test->test").
settings(commonNonBootstrappedSettings).
Expand Down