Skip to content

Commit

Permalink
Allow jdk to attach self
Browse files Browse the repository at this point in the history
  • Loading branch information
ARTI1208 committed Dec 28, 2021
1 parent 113b621 commit 642624a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ val runUiHeadlessSupportingMain by createRunner(
val runHeadlessHeadlessSupportingMain by createRunner(
mainClassName = headlessSupportingMain,
"-Dorg.jetbrains.projector.server.enable=true",
"-Djdk.attach.allowAttachSelf=true",
)

val runHeadlessProjectorLauncher by createRunner(
mainClassName = "org.jetbrains.projector.server.ProjectorLauncher",
"-Dorg.jetbrains.projector.server.classToLaunch=$originalMain",
"-Djdk.attach.allowAttachSelf=true",
)

0 comments on commit 642624a

Please sign in to comment.