Add [JPS] IDEA (No ProcessCanceledException) configuration
This commit is contained in:
@@ -115,7 +115,8 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
|||||||
fun idea(
|
fun idea(
|
||||||
title: String,
|
title: String,
|
||||||
sandboxDir: File,
|
sandboxDir: File,
|
||||||
pluginDir: File
|
pluginDir: File,
|
||||||
|
disableProcessCanceledException: Boolean = false
|
||||||
) {
|
) {
|
||||||
application(title) {
|
application(title) {
|
||||||
moduleName = "kotlin.idea-runner.main"
|
moduleName = "kotlin.idea-runner.main"
|
||||||
@@ -133,13 +134,16 @@ if (kotlinBuildProperties.isInJpsBuildIdeaSync) {
|
|||||||
"-Dapple.laf.useScreenMenuBar=true",
|
"-Dapple.laf.useScreenMenuBar=true",
|
||||||
"-Dapple.awt.graphics.UseQuartz=true",
|
"-Dapple.awt.graphics.UseQuartz=true",
|
||||||
"-Dsun.io.useCanonCaches=false",
|
"-Dsun.io.useCanonCaches=false",
|
||||||
"-Dplugin.path=${pluginDir.absolutePath}"
|
"-Dplugin.path=${pluginDir.absolutePath}",
|
||||||
|
"-Didea.ProcessCanceledException=${if (disableProcessCanceledException) "disabled" else "enabled"}"
|
||||||
).joinToString(" ")
|
).joinToString(" ")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
idea("[JPS] IDEA", ideaSandboxDir, ideaPluginDir)
|
idea("[JPS] IDEA", ideaSandboxDir, ideaPluginDir)
|
||||||
|
|
||||||
|
idea("[JPS] IDEA (No ProcessCanceledException)", ideaSandboxDir, ideaPluginDir, disableProcessCanceledException = true)
|
||||||
|
|
||||||
if (intellijUltimateEnabled) {
|
if (intellijUltimateEnabled) {
|
||||||
idea("[JPS] IDEA Ultimate", ideaUltimateSandboxDir, ideaPluginDir)
|
idea("[JPS] IDEA Ultimate", ideaUltimateSandboxDir, ideaPluginDir)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user