@@ -154,7 +154,7 @@ class Runner(val testFile: File, fileManager: FileManager, updateCheck: Boolean)
154
154
155
155
val testFullPath = testFile.getAbsolutePath
156
156
157
- // Note! As this currently functions, JAVA_OPTS must precede argString
157
+ // Note! As this currently functions, PartestDefaults.javaOpts must precede argString
158
158
// because when an option is repeated to java only the last one wins.
159
159
// That means until now all the .javaopts files were being ignored because
160
160
// they all attempt to change options which are also defined in
@@ -181,7 +181,7 @@ class Runner(val testFile: File, fileManager: FileManager, updateCheck: Boolean)
181
181
val classpath = joinPaths(extraClasspath ++ testClassPath)
182
182
183
183
javaCmd +: (
184
- (JAVA_OPTS .split(' ' ) ++ extraJavaOptions ++ argString.split(' ' )).map(_.trim).filter(_ != " " ).toList ++ Seq (
184
+ (PartestDefaults .javaOpts .split(' ' ) ++ extraJavaOptions ++ argString.split(' ' )).map(_.trim).filter(_ != " " ).toList ++ Seq (
185
185
" -classpath" ,
186
186
join(outDir.toString, classpath)
187
187
) ++ propertyOptions ++ Seq (
@@ -534,7 +534,7 @@ class Runner(val testFile: File, fileManager: FileManager, updateCheck: Boolean)
534
534
if (NestUI ._verbose) List (" -verbose" , " -noinput" )
535
535
else List (" -noinput" )
536
536
val cmd = javaCmd +: (
537
- JAVA_OPTS .split(' ' ).map(_.trim).filter(_ != " " ) ++ Seq (
537
+ PartestDefaults .javaOpts .split(' ' ).map(_.trim).filter(_ != " " ) ++ Seq (
538
538
" -classpath" ,
539
539
antLauncherPath,
540
540
" org.apache.tools.ant.launch.Launcher"
@@ -743,15 +743,14 @@ abstract class DirectRunner {
743
743
def relativize (path : String ) = path.replace(fileManager.baseDir.toString, " $baseDir" ).replace(PathSettings .srcDir.toString, " $sourceDir" )
744
744
val vmBin = javaHome + fileSeparator + " bin"
745
745
val vmName = " %s (build %s, %s)" .format(javaVmName, javaVmVersion, javaVmInfo)
746
- val vmOpts = fileManager.JAVA_OPTS
747
746
748
747
s """ |Compiler under test: ${relativize(fileManager.compilerUnderTest.getAbsolutePath)}
749
748
|Scala version is: $versionMsg
750
749
|Scalac options are: ${fileManager.SCALAC_OPTS mkString " " }
751
750
|Compilation Path: ${relativize(joinPaths(fileManager.testClassPath))}
752
751
|Java binaries in: $vmBin
753
752
|Java runtime is: $vmName
754
- |Java options are: $vmOpts
753
+ |Java options are: ${ PartestDefaults .javaOpts}
755
754
|baseDir: ${fileManager.baseDir}
756
755
|sourceDir: ${PathSettings .srcDir}
757
756
""" .stripMargin
0 commit comments