aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-30 15:41:00 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2016-11-30 15:41:00 +0300
commitf229fec71c875d625716712a80590fe24937503e (patch)
tree42b81a44a30bc853b228695725d17dcfb2ee43a1 /core
parentfe4d32a3d7c8c01453d0a753a2215113846a5d51 (diff)
downloaddokka-f229fec71c875d625716712a80590fe24937503e.tar.gz
dokka-f229fec71c875d625716712a80590fe24937503e.tar.bz2
dokka-f229fec71c875d625716712a80590fe24937503e.zip
Set idea.io.use.fallback to "true", to fix idea environment startup warning on windows
Diffstat (limited to 'core')
-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