Skip to content

Commit e496b94

Browse files
Remove unused code from MavenConfigGenerationTest
1 parent adb9afd commit e496b94

1 file changed

Lines changed: 2 additions & 11 deletions

File tree

src/test/scala/bloop/integrations/maven/MavenConfigGenerationTest.scala

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import java.nio.file.Path
88
import java.nio.file.Paths
99
import java.nio.file.StandardCopyOption
1010

11-
import scala.sys.process.ProcessLogger
1211
import scala.util.Try
1312
import 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

Comments
 (0)