override fun exec()

in src/main/kotlin/org/jetbrains/intellij/platform/gradle/tasks/RunIdeTask.kt [36:54]


    override fun exec() {
        validateIntelliJPlatformVersion()
        validateSplitModeSupport()

        workingDir = platformPath.toFile()

        if (splitMode.get()) {
            environment("JETBRAINS_CLIENT_JDK", runtimeDirectory.asPath.safePathString)
            environment("JETBRAINS_CLIENT_PROPERTIES", splitModeFrontendProperties.asPath.safePathString)

            if (args.isNotEmpty()) {
                throw InvalidUserDataException("Passing arguments directly is not supported in Split Mode. Use `argumentProviders` instead.")
            }
        }

        systemPropertyDefault("idea.auto.reload.plugins", autoReload.get())

        super.exec()
    }