-
- All Implemented Interfaces:
-
kotlin.Comparable
,org.gradle.api.Task
,org.gradle.api.internal.DynamicObjectAware
,org.gradle.api.internal.TaskInternal
,org.gradle.api.plugins.ExtensionAware
,org.gradle.util.Configurable
public class CleanDataTask extends DefaultTask
Task to clean all old unused loaded files from registered stores in CleanableStore.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
CleanDataTask.Companion
-
Field Summary
Fields Modifier and Type Field Description private Provider<CleanableStore>
cleanableStoreProvider
private Long
timeToLiveInDays
private Boolean
enabled
private final Property<Duration>
timeout
private final TaskStateInternal
state
private Boolean
impliesSubProjects
private final Boolean
hasCustomActions
private final Set<Provider<out BuildService<?>>>
requiredServices
-
Constructor Summary
Constructors Constructor Description CleanDataTask()
-
Method Summary
Modifier and Type Method Description final Provider<CleanableStore>
getCleanableStoreProvider()
Path to folder. final Unit
setCleanableStoreProvider(@Input() Provider<CleanableStore> cleanableStoreProvider)
Path to folder. final Long
getTimeToLiveInDays()
Time to live in days final Unit
setTimeToLiveInDays(@Input() Long timeToLiveInDays)
Time to live in days final Unit
exec()
-
Methods inherited from class org.gradle.api.internal.AbstractTask
appendParallelSafeAction, doNotTrackState, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, notCompatibleWithConfigurationCache, prependParallelSafeAction, setImpliesSubProjects
-
Methods inherited from class org.gradle.api.DefaultTask
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getCleanableStoreProvider
final Provider<CleanableStore> getCleanableStoreProvider()
Path to folder. Use path instead of file to avoid file scanning for change check
-
setCleanableStoreProvider
final Unit setCleanableStoreProvider(@Input() Provider<CleanableStore> cleanableStoreProvider)
Path to folder. Use path instead of file to avoid file scanning for change check
-
getTimeToLiveInDays
final Long getTimeToLiveInDays()
Time to live in days
-
setTimeToLiveInDays
final Unit setTimeToLiveInDays(@Input() Long timeToLiveInDays)
Time to live in days
-
-
-
-