Class InstrumentClassesAction

java.lang.Object
com.uwyn.rife2.gradle.InstrumentClassesAction
All Implemented Interfaces:
org.gradle.api.Action<org.gradle.api.Task>

public abstract class InstrumentClassesAction extends Object implements org.gradle.api.Action<org.gradle.api.Task>
Instruments compiled classes ahead of time with RIFE2's instrumentation deployer.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    execute(org.gradle.api.Task task)
     
    abstract org.gradle.api.file.DirectoryProperty
    The directory with the compiled classes, which are instrumented in place.
    abstract org.gradle.api.file.ConfigurableFileCollection
    The classpath with RIFE2 and the dependencies of the compiled classes.
    abstract org.gradle.api.provider.Property<Boolean>
    Indicates whether the classes should be instrumented.
    protected abstract org.gradle.process.ExecOperations
     
    abstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher>
    The Java launcher that runs the instrumentation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InstrumentClassesAction

      public InstrumentClassesAction()
  • Method Details

    • getEnabled

      public abstract org.gradle.api.provider.Property<Boolean> getEnabled()
      Indicates whether the classes should be instrumented.
      Returns:
      true when the classes should be instrumented; false otherwise
    • getClassesDirectory

      public abstract org.gradle.api.file.DirectoryProperty getClassesDirectory()
      The directory with the compiled classes, which are instrumented in place.
      Returns:
      the classes directory
    • getClasspath

      public abstract org.gradle.api.file.ConfigurableFileCollection getClasspath()
      The classpath with RIFE2 and the dependencies of the compiled classes.
      Returns:
      the instrumentation classpath
    • getLauncher

      public abstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher> getLauncher()
      The Java launcher that runs the instrumentation.
      Returns:
      the Java launcher
    • getExecOperations

      @Inject protected abstract org.gradle.process.ExecOperations getExecOperations()
    • execute

      public void execute(org.gradle.api.Task task)
      Specified by:
      execute in interface org.gradle.api.Action<org.gradle.api.Task>