Class AbstractFrmtrJavaTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
dev.lanwen.frmtr.gradle.AbstractFrmtrJavaTask
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>
Direct Known Subclasses:
FrmtrJavaCheckTask, FrmtrJavaFormatTask

@DisableCachingByDefault(because="Concrete frmtr tasks define whether their source-processing action is cacheable.") public abstract class AbstractFrmtrJavaTask extends org.gradle.api.DefaultTask
  • 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
    AbstractFrmtrJavaTask(org.gradle.api.model.ObjectFactory objects)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    clearMarker(org.gradle.api.file.RegularFileProperty marker)
     
    protected Path
     
    protected org.gradle.api.GradleException
    formatterFailure(String action, dev.lanwen.frmtr.tooling.FormatRunResult run)
     
    protected dev.lanwen.frmtr.FormatterOptions
     
    org.gradle.api.provider.ListProperty<String>
     
    org.gradle.api.provider.ListProperty<String>
     
    org.gradle.api.provider.Property<dev.lanwen.frmtr.FormatterOptions.JavaLanguageLevel>
     
    org.gradle.api.provider.Property<Integer>
     
    org.gradle.api.file.DirectoryProperty
     
    org.gradle.api.file.ConfigurableFileCollection
     
    protected void
    logSelectedFiles(String action, org.gradle.work.InputChanges inputChanges, List<Path> files)
     
    protected void
    printFailures(dev.lanwen.frmtr.tooling.FormatRunResult run)
     
    protected List<Path>
     
    protected List<Path>
    selectedFiles(org.gradle.work.InputChanges inputChanges)
     
    protected void
    writeMarker(org.gradle.api.file.RegularFileProperty marker, String content)
     

    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

    • AbstractFrmtrJavaTask

      @Inject public AbstractFrmtrJavaTask(org.gradle.api.model.ObjectFactory objects)
  • Method Details

    • getSourceFiles

      @SkipWhenEmpty @InputFiles @PathSensitive(RELATIVE) public org.gradle.api.file.ConfigurableFileCollection getSourceFiles()
    • getIncludes

      @Input public org.gradle.api.provider.ListProperty<String> getIncludes()
    • getExcludes

      @Input public org.gradle.api.provider.ListProperty<String> getExcludes()
    • getLineWidth

      @Input @Optional public org.gradle.api.provider.Property<Integer> getLineWidth()
    • getJavaLanguageLevel

      @Input public org.gradle.api.provider.Property<dev.lanwen.frmtr.FormatterOptions.JavaLanguageLevel> getJavaLanguageLevel()
    • getProjectDirectory

      @Internal public org.gradle.api.file.DirectoryProperty getProjectDirectory()
    • formatterOptions

      protected dev.lanwen.frmtr.FormatterOptions formatterOptions()
    • displayRoot

      protected Path displayRoot()
    • selectedFiles

      protected List<Path> selectedFiles()
    • selectedFiles

      protected List<Path> selectedFiles(org.gradle.work.InputChanges inputChanges)
    • logSelectedFiles

      protected void logSelectedFiles(String action, org.gradle.work.InputChanges inputChanges, List<Path> files)
    • clearMarker

      protected void clearMarker(org.gradle.api.file.RegularFileProperty marker)
    • writeMarker

      protected void writeMarker(org.gradle.api.file.RegularFileProperty marker, String content)
    • printFailures

      protected void printFailures(dev.lanwen.frmtr.tooling.FormatRunResult run)
    • formatterFailure

      protected org.gradle.api.GradleException formatterFailure(String action, dev.lanwen.frmtr.tooling.FormatRunResult run)