aboutsummaryrefslogtreecommitdiff
path: root/test/dotty/partest/DPConsoleRunner.scala
diff options
context:
space:
mode:
authorvsalvis <salvisbergvera@gmail.com>2015-05-11 13:45:49 +0200
committervsalvis <salvisbergvera@gmail.com>2015-05-12 11:19:34 +0200
commit7e3595d1f7efa34ef3ea2409529643cd8864e926 (patch)
treed75e9a0204a4110d9e9649ced9dd8e45c06202c3 /test/dotty/partest/DPConsoleRunner.scala
parentca3fc43bb3f9eb0068669acf6e64b3c6bd310511 (diff)
downloaddotty-7e3595d1f7efa34ef3ea2409529643cd8864e926.tar.gz
dotty-7e3595d1f7efa34ef3ea2409529643cd8864e926.tar.bz2
dotty-7e3595d1f7efa34ef3ea2409529643cd8864e926.zip
Better documentation for partest dottyJar option
Diffstat (limited to 'test/dotty/partest/DPConsoleRunner.scala')
-rw-r--r--test/dotty/partest/DPConsoleRunner.scala4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/dotty/partest/DPConsoleRunner.scala b/test/dotty/partest/DPConsoleRunner.scala
index c17bf7e8c..31b8467d3 100644
--- a/test/dotty/partest/DPConsoleRunner.scala
+++ b/test/dotty/partest/DPConsoleRunner.scala
@@ -14,11 +14,13 @@ import java.net.URLClassLoader
/** Runs dotty partest from the Console, discovering test sources in
* DPConfig.testRoot that have been generated automatically by
- * DPPrepJUnitRunner. Use `sbt partest` to run.
+ * DPPrepJUnitRunner. Use `sbt partest` to run. If additional jars are
+ * required by some run tests, add them to partestDeps in the sbt Build.scala.
*/
object DPConsoleRunner {
def main(args: Array[String]): Unit = {
// unfortunately sbt runTask passes args as single string
+ // extra jars for run tests are passed with -dottyJars <count> <jar1> <jar2> ...
val jarFinder = """-dottyJars (\d*) (.*)""".r
val (jarList, otherArgs) = args.toList.partition(jarFinder.findFirstIn(_).isDefined)
val extraJars = jarList match {