Class JarhcWorkAction

java.lang.Object
org.jarhc.gradle.JarhcWorkAction
All Implemented Interfaces:
org.gradle.workers.WorkAction<JarhcWorkParameters>

public abstract class JarhcWorkAction extends Object implements org.gradle.workers.WorkAction<JarhcWorkParameters>
Runs JarHC inside an isolated worker. Gradle loads this class both in the plugin classloader (to resolve the .class literal in the task) and, for classLoaderIsolation, in the worker classloader that additionally carries the JarHC classpath. To keep the former load safe, this class must not reference any JarHC type in its fields or method signatures: all JarHC access is confined to JarhcRunner, which is only touched from execute() and therefore only resolved once the worker actually runs.
  • Constructor Details

    • JarhcWorkAction

      public JarhcWorkAction()
  • Method Details

    • execute

      public void execute()
      Specified by:
      execute in interface org.gradle.workers.WorkAction<JarhcWorkParameters>