aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ogorodnik <sem-oro@yandex.ru>2016-11-30 16:26:08 +0300
committerGitHub <noreply@github.com>2016-11-30 16:26:08 +0300
commit7a6bc78fbd58a7bca8263e0341a60365a8c49c5d (patch)
tree42b81a44a30bc853b228695725d17dcfb2ee43a1
parentfe4d32a3d7c8c01453d0a753a2215113846a5d51 (diff)
parentf229fec71c875d625716712a80590fe24937503e (diff)
downloaddokka-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.kt3
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