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 -
Method Summary
Modifier and TypeMethodDescriptionabstract org.gradle.api.file.RegularFilePropertyThe resolved.jacet.jsonbacking the configuration, or absent when none applies.org.gradle.api.provider.Provider<String> abstract org.gradle.api.provider.Property<JacetExtension> The configuredJacetExtension, carried into the task so its DSL values resolve toFormatterOptionsat execution time.org.gradle.api.provider.Provider<Boolean> org.gradle.api.provider.Provider<Integer> abstract org.gradle.api.file.ConfigurableFileCollectionabstract org.gradle.api.file.RegularFilePropertyorg.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, usesServiceMethods 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, setImpliesSubProjectsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
The configuredJacetExtension, carried into the task so its DSL values resolve toFormatterOptionsat execution time. Marked@Internalbecause the individual options are fingerprinted separately as@Inputproviders (seeresolvedOptions) — 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.jsonbacking the configuration, or absent when none applies. Wired byJacetPlugin(explicitconfigFile, else the walk-up lookup). Declared as an@InputFileso a change to its content invalidates the task — without this, editing.jacet.jsonwould leave the task spuriouslyUP_TO_DATE.@Optionalbecause the file may not exist;PathSensitivity.NONEbecause only the content matters, not where the file lives. -
getStampFile
@OutputFile public abstract org.gradle.api.file.RegularFileProperty getStampFile() -
getPrintWidth
-
getTabWidth
-
getUseTabs
-
getForceBraces
-
getEndOfLineName
-
getStaticImportsPosition
-
getImportGroupPrefixes
-