Skip to content

Commit e5c670b

Browse files
authored
Fix spring-analyzer working directory #2291 (#2293)
1 parent 8227e23 commit e5c670b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

utbot-spring-analyzer/src/main/kotlin/org/utbot/spring/process/SpringAnalyzerProcess.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import kotlinx.coroutines.runBlocking
55
import mu.KotlinLogging
66
import org.utbot.common.JarUtils
77
import org.utbot.common.getPid
8-
import org.utbot.common.utBotTempDirectory
98
import org.utbot.framework.UtSettings
9+
import org.utbot.framework.plugin.services.WorkingDirService
1010
import org.utbot.framework.process.AbstractRDProcessCompanion
1111
import org.utbot.rd.ProcessWithRdServer
1212
import org.utbot.rd.exceptions.InstantProcessDeathException
@@ -22,7 +22,6 @@ import org.utbot.spring.generated.SpringAnalyzerProcessModel
2222
import org.utbot.spring.generated.SpringAnalyzerResult
2323
import org.utbot.spring.generated.springAnalyzerProcessModel
2424
import java.io.File
25-
import java.nio.file.Files
2625

2726
class SpringAnalyzerProcessInstantDeathException :
2827
InstantProcessDeathException(
@@ -69,7 +68,7 @@ class SpringAnalyzerProcess private constructor(
6968
)
7069
val cmd = obtainProcessCommandLine(port)
7170
val process = ProcessBuilder(cmd)
72-
.directory(Files.createTempDirectory(utBotTempDirectory, "spring-analyzer").toFile())
71+
.directory(WorkingDirService.provide().toFile())
7372
.start()
7473

7574
logger.info { "Spring Analyzer process started with PID = ${process.getPid}" }

0 commit comments

Comments
 (0)