Class AbstractJacetTask

java.lang.Object
org.gradle.api.internal.AbstractTask
org.gradle.api.DefaultTask
de.irotation.jacet.gradle.AbstractJacetTask
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:
CheckTask, FormatTask

@DisableCachingByDefault(because="Subclasses override with their own caching policy") public abstract class AbstractJacetTask extends org.gradle.api.DefaultTask
Shared plumbing for jacet tasks: source inputs, configuration fingerprint, and a stamp-file output so Gradle can evaluate UP_TO_DATE across runs.
  • 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.RegularFileProperty
    The resolved .jacet.json backing the configuration, or absent when none applies.
    org.gradle.api.provider.Provider<String>
     
    abstract org.gradle.api.provider.Property<JacetExtension>
    The configured JacetExtension, carried into the task so its DSL values resolve to FormatterOptions at execution time.
    org.gradle.api.provider.Provider<Boolean>
     
    org.gradle.api.provider.Provider<List<String>>
     
    org.gradle.api.provider.Provider<Integer>
     
    abstract org.gradle.api.file.ConfigurableFileCollection
     
    abstract org.gradle.api.file.RegularFileProperty
     
    org.gradle.api.provider.Provider<String>
     
    org.gradle.api.provider.Provider<Integer>
     
    org.gradle.api.provider.Provider<Boolean>
     

    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 Object

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

    Methods inherited from interface org.gradle.api.Task

    doNotTrackState, notCompatibleWithConfigurationCache
  • Constructor Details

    • AbstractJacetTask

      public AbstractJacetTask()
  • Method Details

    • getSourceFiles

      @Incremental @InputFiles @PathSensitive(RELATIVE) public abstract org.gradle.api.file.ConfigurableFileCollection getSourceFiles()
    • getExtension

      @Internal public abstract org.gradle.api.provider.Property<JacetExtension> getExtension()
      The configured JacetExtension, carried into the task so its DSL values resolve to FormatterOptions at execution time. Marked @Internal because the individual options are fingerprinted separately as @Input providers (see resolvedOptions) — the extension object itself is wiring, not a build input.
    • getConfigFile

      @Optional @InputFile @PathSensitive(NONE) public abstract org.gradle.api.file.RegularFileProperty getConfigFile()
      The resolved .jacet.json backing the configuration, or absent when none applies. Wired by JacetPlugin (explicit configFile, else the walk-up lookup). Declared as an @InputFile so a change to its content invalidates the task — without this, editing .jacet.json would leave the task spuriously UP_TO_DATE. @Optional because the file may not exist; PathSensitivity.NONE because only the content matters, not where the file lives.
    • getStampFile

      @OutputFile public abstract org.gradle.api.file.RegularFileProperty getStampFile()
    • getPrintWidth

      @Input public org.gradle.api.provider.Provider<Integer> getPrintWidth()
    • getTabWidth

      @Input public org.gradle.api.provider.Provider<Integer> getTabWidth()
    • getUseTabs

      @Input public org.gradle.api.provider.Provider<Boolean> getUseTabs()
    • getForceBraces

      @Input public org.gradle.api.provider.Provider<Boolean> getForceBraces()
    • getEndOfLineName

      @Input public org.gradle.api.provider.Provider<String> getEndOfLineName()
    • getStaticImportsPosition

      @Input public org.gradle.api.provider.Provider<String> getStaticImportsPosition()
    • getImportGroupPrefixes

      @Input public org.gradle.api.provider.Provider<List<String>> getImportGroupPrefixes()