[Compiler CLI] Use reading language version settings from environment only if the resource is presented or flag is set
This commit is contained in:
committed by
teamcity
parent
683a3e74a0
commit
5c8ca0ca9b
@@ -106,6 +106,7 @@ public abstract class AbstractCliTest extends TestCaseWithTmpdir {
|
||||
|
||||
File environmentTestConfig = new File(fileName.replaceFirst("\\.args$", ".env"));
|
||||
if (environmentTestConfig.exists()) {
|
||||
compiler.setReadingSettingsFromEnvironmentAllowed(true);
|
||||
CompilerSystemProperties.LANGUAGE_VERSION_SETTINGS.setValue(FilesKt.readText(environmentTestConfig, Charsets.UTF_8));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user