@@ -29,7 +29,6 @@ import org.utbot.features.FeatureExtractorFactoryImpl
29
29
import org.utbot.features.FeatureProcessorWithStatesRepetitionFactory
30
30
import org.utbot.framework.PathSelectorType
31
31
import org.utbot.framework.UtSettings
32
- import org.utbot.framework.plugin.api.util.UtContext
33
32
import org.utbot.framework.plugin.api.util.id
34
33
import org.utbot.framework.plugin.api.util.withUtContext
35
34
import org.utbot.framework.plugin.services.JdkInfoService
@@ -47,7 +46,7 @@ private val javaHome = System.getenv("JAVA_HOME")
47
46
private val javacCmd = " $javaHome /bin/javac"
48
47
private val javaCmd = " $javaHome /bin/java"
49
48
50
- private const val triesToCompile = 2
49
+ private const val compileAttempts = 2
51
50
52
51
private data class UnnamedPackageInfo (val pack : String , val module : String )
53
52
@@ -64,7 +63,7 @@ private fun compileClass(testDir: String, classPath: String, testClass: String):
64
63
val exports = mutableSetOf<UnnamedPackageInfo >()
65
64
var exitCode = 0
66
65
67
- repeat(triesToCompile ) { tryNumber ->
66
+ repeat(compileAttempts ) { attemptNumber ->
68
67
val cmd = arrayOf(
69
68
javacCmd,
70
69
* exports.flatMap {
@@ -76,7 +75,7 @@ private fun compileClass(testDir: String, classPath: String, testClass: String):
76
75
" -XDignore.symbol.file" ,
77
76
testClass
78
77
)
79
- logger.debug { " Compile try ${tryNumber + 1 } " }
78
+ logger.debug { " Compile attempt ${attemptNumber + 1 } " }
80
79
81
80
logger.trace { cmd.toText() }
82
81
0 commit comments