@@ -11,10 +11,7 @@ import kotlinx.coroutines.runBlocking
11
11
import kotlinx.coroutines.sync.Mutex
12
12
import kotlinx.coroutines.sync.withLock
13
13
import mu.KotlinLogging
14
- import org.utbot.common.AbstractSettings
15
- import org.utbot.common.getPid
16
- import org.utbot.common.osSpecificJavaExecutable
17
- import org.utbot.common.utBotTempDirectory
14
+ import org.utbot.common.*
18
15
import org.utbot.framework.UtSettings
19
16
import org.utbot.framework.codegen.*
20
17
import org.utbot.framework.codegen.model.UtilClassKind
@@ -81,8 +78,9 @@ class EngineProcess(parent: Lifetime, val project: Project) {
81
78
)
82
79
}.toPath()
83
80
realPath = configPath
81
+ logger.info(" log configuration path - ${realPath!! .pathString} " )
84
82
}
85
- return realPath!! .pathString
83
+ return realPath.pathString
86
84
}
87
85
88
86
private fun debugArgument (): String {
@@ -104,14 +102,14 @@ class EngineProcess(parent: Lifetime, val project: Project) {
104
102
val java =
105
103
JdkInfoService .jdkInfoProvider.info.path.resolve(" bin${File .separatorChar}${osSpecificJavaExecutable()} " ).toString()
106
104
val cp = (this .javaClass.classLoader as PluginClassLoader ).classPath.baseUrls.joinToString(
107
- separator = " ; " ,
105
+ separator = if (isWindows) " ; " else " : " ,
108
106
prefix = " \" " ,
109
107
postfix = " \" "
110
108
)
111
109
val classname = " org.utbot.framework.process.EngineMainKt"
112
110
val javaVersionSpecificArguments = OpenModulesContainer .javaVersionSpecificArguments
113
111
val directory = WorkingDirService .provide().toFile()
114
- val log4j2ConfigFile = " \" -Dlog4j2.configurationFile=${getOrCreateLogConfig()} \" "
112
+ val log4j2ConfigFile = " -Dlog4j2.configurationFile=${getOrCreateLogConfig()} "
115
113
val debugArg = debugArgument()
116
114
logger.info { " java - $java \n classpath - $cp \n port - $port " }
117
115
val cmd = mutableListOf<String >(java, " -ea" )
0 commit comments