diff options
author | Simon Ogorodnik <sem-oro@yandex.ru> | 2016-11-30 16:26:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-30 16:26:08 +0300 |
commit | 7a6bc78fbd58a7bca8263e0341a60365a8c49c5d (patch) | |
tree | 42b81a44a30bc853b228695725d17dcfb2ee43a1 | |
parent | fe4d32a3d7c8c01453d0a753a2215113846a5d51 (diff) | |
parent | f229fec71c875d625716712a80590fe24937503e (diff) | |
download | dokka-7a6bc78fbd58a7bca8263e0341a60365a8c49c5d.tar.gz dokka-7a6bc78fbd58a7bca8263e0341a60365a8c49c5d.tar.bz2 dokka-7a6bc78fbd58a7bca8263e0341a60365a8c49c5d.zip |
Merge pull request #121 from Kotlin/windows-warn-fix
Warning on windows fix
-rw-r--r-- | core/src/main/kotlin/Analysis/AnalysisEnvironment.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt index b192794e..3f7f616f 100644 --- a/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt +++ b/core/src/main/kotlin/Analysis/AnalysisEnvironment.kt @@ -54,13 +54,14 @@ import java.io.File * $body: optional and can be used to configure environment without creating local variable */ class AnalysisEnvironment(val messageCollector: MessageCollector) : Disposable { - val configuration = CompilerConfiguration(); + val configuration = CompilerConfiguration() init { configuration.put(CLIConfigurationKeys.MESSAGE_COLLECTOR_KEY, messageCollector) } fun createCoreEnvironment(): KotlinCoreEnvironment { + System.setProperty("idea.io.use.fallback", "true") val environment = KotlinCoreEnvironment.createForProduction(this, configuration, EnvironmentConfigFiles.JVM_CONFIG_FILES) val projectComponentManager = environment.project as MockComponentManager |