@@ -25,6 +25,9 @@ class HotSbtBenchmark {
25
25
@ Param (value = Array (" " ))
26
26
var extraArgs : String = _
27
27
28
+ @ Param (value = Array (" 0.13.15" ))
29
+ var sbtVersion : String = _
30
+
28
31
// This parameter is set by ScalacBenchmarkRunner / UploadingRunner based on the Scala version.
29
32
// When running the benchmark directly the "latest" symlink is used.
30
33
@ Param (value = Array (" latest" ))
@@ -60,7 +63,7 @@ class HotSbtBenchmark {
60
63
scalaHome = Files .createTempDirectory(" scalaHome-" )
61
64
initDepsClasspath()
62
65
Files .createDirectory(tempDir.resolve(" project" ))
63
- Files .write(tempDir.resolve(" project/build.properties" ), java.util.Arrays .asList(" sbt.version=0.13.15 " ))
66
+ Files .write(tempDir.resolve(" project/build.properties" ), java.util.Arrays .asList(" sbt.version=" + sbtVersion ))
64
67
Files .write(tempDir.resolve(" build.sbt" ), buildDef.getBytes(" UTF-8" ))
65
68
val sbtLaucherPath = System .getProperty(" sbt.launcher" )
66
69
if (sbtLaucherPath == null ) sys.error(" System property -Dsbt.launcher absent" )
@@ -92,7 +95,7 @@ class HotSbtBenchmark {
92
95
var read : Int = - 1
93
96
while (true ) {
94
97
read = processOutputReader.read(buffer)
95
- if (read == - 1 ) sys.error(" EOF" )
98
+ if (read == - 1 ) sys.error(" EOF: " + output.toString )
96
99
else {
97
100
output.append(buffer, 0 , read)
98
101
if (output.toString.contains(" \n > " )) {
0 commit comments