Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

Commit 3052efe

Browse files
committed
Simplify running from console.
We defer to build tools to resolve partest's classpath. For example, Scala's ant build provides the task `test.suite.init` that resolves the required artifacts and writes the classpath to `build/pack/partest.properties`. The `test/partest` script reads that file to set up the classpath.
1 parent 3923d16 commit 3052efe

File tree

4 files changed

+1
-216
lines changed

4 files changed

+1
-216
lines changed

src/main/scala/scala/tools/partest/nest/ConsoleFileManager.scala

Lines changed: 0 additions & 131 deletions
This file was deleted.

src/main/scala/scala/tools/partest/nest/ConsoleRunner.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ConsoleRunner(argstr: String) extends {
2020

2121
val suiteRunner = new SuiteRunner (
2222
testSourcePath = optSourcePath.map(_.getAbsolutePath) getOrElse PartestDefaults.sourcePath,
23-
fileManager = new ConsoleFileManager(if (optPack) Some("build/pack") else optBuildPath, optClassPath),
23+
fileManager = new FileManager(ClassPath split PathResolver.Environment.javaUserClassPath map (Path(_))), // the script sets up our classpath for us via ant
2424
updateCheck = optUpdateCheck,
2525
failed = optFailed)
2626
import suiteRunner._

src/main/scala/scala/tools/partest/nest/NestRunner.scala

Lines changed: 0 additions & 15 deletions
This file was deleted.

src/main/scala/scala/tools/partest/nest/ReflectiveRunner.scala

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)