in src/main/kotlin/org/jetbrains/intellij/platform/gradle/tasks/RunIdeTask.kt [62:90]
override fun register(project: Project) {
project.registerTask<RunIdeTask>(Tasks.RUN_IDE, configureWithType = false) {
val prepareSandboxTaskProvider = project.tasks.named<PrepareSandboxTask>(Tasks.PREPARE_SANDBOX)
applySandboxFrom(prepareSandboxTaskProvider)
}
project.registerTask<RunIdeTask> {
systemPropertyDefault("idea.classpath.index.enabled", false)
systemPropertyDefault("idea.is.internal", true)
systemPropertyDefault("idea.plugin.in.sandbox.mode", true)
systemPropertyDefault("idea.vendor.name", "JetBrains")
systemPropertyDefault("ide.no.platform.update", false)
systemPropertyDefault("jdk.module.illegalAccess.silent", true)
with(OperatingSystem.current()) {
when {
isMacOsX -> {
systemPropertyDefault("idea.smooth.progress", false)
systemPropertyDefault("apple.laf.useScreenMenuBar", true)
systemPropertyDefault("apple.awt.fileDialogForDirectories", true)
}
isUnix -> {
systemPropertyDefault("sun.awt.disablegrab", true)
}
}
}
}
}