Class CabeTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
com.dua3.cabe.gradle.CabeTask
All Implemented Interfaces:
Comparable<org.gradle.api.Task>, org.gradle.api.internal.DynamicObjectAware, org.gradle.api.internal.TaskInternal, org.gradle.api.Named, org.gradle.api.plugins.ExtensionAware, org.gradle.api.Task, org.gradle.util.Configurable<org.gradle.api.Task>

@CacheableTask public abstract class CabeTask extends org.gradle.api.DefaultTask
The CabeTask class is responsible for instrumenting class files using Cabe.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.gradle.api.Named

    org.gradle.api.Named.Namer
  • Field Summary

    Fields inherited from interface org.gradle.api.Task

    TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract org.gradle.api.file.ConfigurableFileCollection
    Retrieves the classpath used for instrumentation.
    abstract org.gradle.api.provider.Property<com.dua3.cabe.processor.Configuration>
    Retrieves the configuration property for the Cabe plugin.
    protected abstract org.gradle.process.ExecOperations
    Retrieves the ExecOperations instance.
    abstract org.gradle.api.file.DirectoryProperty
    Retrieves the input directory containing the class files to be instrumented.
    abstract org.gradle.api.file.RegularFileProperty
    Retrieves the Java executable path.
    abstract org.gradle.api.file.DirectoryProperty
    Retrieves the output directory where the instrumented class files will be stored.
    abstract org.gradle.api.provider.Property<Integer>
    Retrieves the verbosity property for the Cabe plugin.
    void
    Instrument the class files.

    Methods inherited from class org.gradle.api.DefaultTask

    compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService

    Methods inherited from class org.gradle.api.internal.AbstractTask

    acceptServiceReferences, appendParallelSafeAction, doNotTrackState, doNotTrackStateIf, getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonsNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions, setImpliesSubProjects

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, notCompatibleWithConfigurationCache
  • Constructor Details

    • CabeTask

      public CabeTask()
  • Method Details

    • getConfig

      @Input public abstract org.gradle.api.provider.Property<com.dua3.cabe.processor.Configuration> getConfig()
      Retrieves the configuration property for the Cabe plugin.
      Returns:
      the configuration property as a Property object of type Configuration
    • getVerbosity

      @Input public abstract org.gradle.api.provider.Property<Integer> getVerbosity()
      Retrieves the verbosity property for the Cabe plugin.
      Returns:
      the verbosity property as a Property object of type Integer
    • getInputDirectory

      @InputDirectory @Optional @PathSensitive(RELATIVE) public abstract org.gradle.api.file.DirectoryProperty getInputDirectory()
      Retrieves the input directory containing the class files to be instrumented.
      Returns:
      the input directory as a DirectoryProperty object
    • getOutputDirectory

      @OutputDirectory public abstract org.gradle.api.file.DirectoryProperty getOutputDirectory()
      Retrieves the output directory where the instrumented class files will be stored.
      Returns:
      the output directory as a DirectoryProperty object
    • getClasspath

      @InputFiles @Classpath public abstract org.gradle.api.file.ConfigurableFileCollection getClasspath()
      Retrieves the classpath used for instrumentation.
      Returns:
      the classpath as a ConfigurableFileCollection object
    • getJavaExecutable

      @InputFile @PathSensitive(NONE) public abstract org.gradle.api.file.RegularFileProperty getJavaExecutable()
      Retrieves the Java executable path.
      Returns:
      the Java executable path as a RegularFileProperty object
    • getExecOperations

      @Inject protected abstract org.gradle.process.ExecOperations getExecOperations()
      Retrieves the ExecOperations instance.
      Returns:
      the ExecOperations instance
    • instrument

      public void instrument()
      Instrument the class files.