-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. added ability to set log level for EngineProcess and ChildProcess.…
…kt. Look for related UtSettings.engineProcessLogLevel and UtSettings.childProcessLogLevels 2. opening additional packages to support jdk17+, see OpenModulesContainer 3. fixed using javaw on unix environments 4. fixed using readaction in dumb mode
- Loading branch information
Showing
11 changed files
with
119 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
utbot-framework-api/src/main/kotlin/org/utbot/framework/process/OpenModulesContainer.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package org.utbot.framework.process | ||
|
||
import org.utbot.framework.plugin.services.JdkInfoService | ||
|
||
object OpenModulesContainer { | ||
private val modulesContainer: List<String> | ||
val javaVersionSpecificArguments: List<String> | ||
get() = modulesContainer | ||
.takeIf { JdkInfoService.provide().version > 8 } | ||
?: emptyList() | ||
|
||
init { | ||
modulesContainer = buildList { | ||
openPackage("java.base", "jdk.internal.misc") | ||
openPackage("java.base", "java.lang") | ||
openPackage("java.base", "java.lang.reflect") | ||
openPackage("java.base", "sun.security.provider") | ||
add("--illegal-access=warn") | ||
} | ||
} | ||
|
||
private fun MutableList<String>.openPackage(module: String, pakage: String) { | ||
add("--add-opens") | ||
add("$module/$pakage=ALL-UNNAMED") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.