Class DaemonUtils

java.lang.Object
net.fabricmc.loom.util.gradle.daemon.DaemonUtils

public final class DaemonUtils extends Object
This uses a vast amount of Gradle internal APIs, however this is only used when the JVM is in an unrecoverable state. The alternative is to kill the JVM, using System.exit, which is not ideal and leaves scary messages in the log.
  • Method Details

    • tryStopGradleDaemon

      public static void tryStopGradleDaemon(DaemonUtils.Context context)
      Request the Gradle daemon to stop when it becomes idle.
    • stopWhenIdle

      @VisibleForTesting public static boolean stopWhenIdle(DaemonUtils.Context context)