@@ -8,7 +8,6 @@ import java.nio.file.Path
88import java .nio .file .Paths
99import java .nio .file .StandardCopyOption
1010
11- import scala .sys .process .ProcessLogger
1211import scala .util .Try
1312import scala .util .control .NonFatal
1413
@@ -281,12 +280,10 @@ class MavenConfigGenerationTest extends BaseConfigSuite {
281280 }
282281 }
283282
284- private def check (testProject : String , submodules : List [String ] = Nil , extraFiles : List [ String ] = Nil , extraContent : Map [String , String ] = Map .empty)(
283+ private def check (testProject : String , submodules : List [String ] = Nil , extraContent : Map [String , String ] = Map .empty)(
285284 checking : (Config .File , String , List [Config .File ]) => Unit
286285 ): Unit = {
287286 println(s " Checking $testProject" )
288- def nameFromDirectory (projectString : String ) =
289- Paths .get(projectString).getParent().getFileName().toString()
290287 val tempDir = Files .createTempDirectory(" mavenBloop" )
291288 val outFile = copyFromResource(tempDir, testProject)
292289 extraContent.foreach { case (relativePath, content) =>
@@ -295,12 +292,8 @@ class MavenConfigGenerationTest extends BaseConfigSuite {
295292 Files .write(p, content.getBytes(" UTF-8" ))
296293 }
297294 submodules.foreach(copyFromResource(tempDir, _))
298- extraFiles.foreach(copyFromResource(tempDir, _))
299295 val wrapperJar = copyFromResource(tempDir, s " maven-wrapper.jar " )
300- val wrapperPropertiesFile = copyFromResource(tempDir, s " maven-wrapper.properties " )
301-
302- // val all = Files.list(tempDir).collect(Collectors.toList())
303- import sys .process ._
296+ copyFromResource(tempDir, s " maven-wrapper.properties " )
304297
305298 val javaHome = Paths .get(System .getProperty(" java.home" ))
306299 val javaArgs = List [String ](
@@ -366,8 +359,6 @@ class MavenConfigGenerationTest extends BaseConfigSuite {
366359
367360 private def exec (cmd : Seq [String ], cwd : File ): Try [String ] = {
368361 Try {
369- val lastError = new StringBuilder
370- val swallowStderr = ProcessLogger (_ => (), err => { lastError.append(err); () })
371362 val processBuilder = new ProcessBuilder ()
372363 val out = new StringBuilder ()
373364 processBuilder.directory(cwd)
0 commit comments