Package com.uwyn.rife2.gradle
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.gradle.api.Task task) abstract org.gradle.api.file.DirectoryPropertyThe directory with the compiled classes, which are instrumented in place.abstract org.gradle.api.file.ConfigurableFileCollectionThe 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.ExecOperationsabstract org.gradle.api.provider.Property<org.gradle.jvm.toolchain.JavaLauncher>The Java launcher that runs the instrumentation.
-
Constructor Details
-
InstrumentClassesAction
public InstrumentClassesAction()
-
-
Method Details
-
getEnabled
Indicates whether the classes should be instrumented.- Returns:
truewhen the classes should be instrumented;falseotherwise
-
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:
executein interfaceorg.gradle.api.Action<org.gradle.api.Task>
-