Class ResourceListFileTask
-
- All Implemented Interfaces:
-
kotlin.Comparable,org.gradle.api.Named,org.gradle.api.Task,org.gradle.api.internal.DynamicObjectAware,org.gradle.api.internal.TaskInternal,org.gradle.api.plugins.ExtensionAware,org.gradle.util.Configurable
@CacheableTask() public abstract class ResourceListFileTask extends DefaultTaskThis task creates a resource list artifacts from other files configured with parameters.
-
-
Field Summary
Fields Modifier and Type Field Description private final DirectoryPropertyoutputDirprivate final ConfigurableFileCollectionsourceFilesprivate List<String>excludesprivate List<String>includesprivate StringfileExtensionprivate StringresourceListFileNameprivate StringsourceSetNameprivate final TaskOutputsInternaloutputsprivate final Spec<in TaskInternal>onlyIfprivate final Property<Duration>timeoutprivate final TaskRequiredServicesrequiredServicesprivate final TaskDependencyInternaltaskDependenciesprivate final Set<Object>dependsOnprivate final TaskDestroyablesdestroyablesprivate final Loggerloggerprivate final Stringpathprivate final Factory<File>temporaryDirFactoryprivate final Optional<String>reasonTaskIsIncompatibleWithConfigurationCacheprivate final TaskLocalStatelocalStateprivate final List<InputChangesAwareTaskAction>taskActionsprivate final TaskDependencyInternallifecycleDependenciesprivate BooleanisEnabledprivate BooleanimpliesSubProjectsprivate final TaskInputsInternalinputsprivate Booleanenabledprivate final TaskStateInternalstateprivate final TaskIdentity<?>taskIdentityprivate final TaskDependencyshouldRunAfterprivate final ExtensionContainerextensionsprivate final BooleanisCompatibleWithConfigurationCacheprivate final TaskDependencyfinalizedByprivate final AntBuilderantprivate final DynamicObjectasDynamicObjectprivate final List<ResourceLock>sharedResourcesprivate BooleandidWorkprivate final Optional<String>reasonNotToTrackStateprivate Stringgroupprivate final Set<String>reasonsNotToTrackStateprivate final BooleanisHasCustomActionsprivate List<Action<in Task>>actionsprivate final Stringnameprivate final FiletemporaryDirprivate final LoggingManagerloggingprivate final PathidentityPathprivate final TaskDependencymustRunAfterprivate final StandardOutputCapturestandardOutputCaptureprivate final Projectprojectprivate Stringdescription
-
Constructor Summary
Constructors Constructor Description ResourceListFileTask(ObjectFactory objectFactory, FileSystemOperations fileSystemOps)
-
Method Summary
Modifier and Type Method Description final DirectoryPropertygetOutputDir()Output directory for file gen. final ConfigurableFileCollectiongetSourceFiles()The source files that are used to generate the resource list. final List<String>getExcludes()List of excludes patterns for input directory. final UnitsetExcludes(List<String> value)List of excludes patterns for input directory. final List<String>getIncludes()List of includes patterns for input directory. final UnitsetIncludes(List<String> value)List of includes patterns for input directory. final StringgetFileExtension()File extension is used for the creation of the resource list from resource files. final UnitsetFileExtension(String <set-?>)File extension is used for the creation of the resource list from resource files. final StringgetResourceListFileName()This is the filename of the artifact with the created resource list. final UnitsetResourceListFileName(String <set-?>)This is the filename of the artifact with the created resource list. final StringgetSourceSetName()This is the name of the source set with the resource files for resource list. final UnitsetSourceSetName(String <set-?>)This is the name of the source set with the resource files for resource list. final Unitexclude(String exclude)Add an exclude pattern to the list of excludes. final UnitprovideExcludes(Provider<List<String>> excludes)This function set the excludes provider. final Unitinclude(String include)Add an include pattern to the list of includes. final UnitprovideIncludes(Provider<List<String>> includes)This function set the includes provider. final UnitprovideFileExtension(Provider<String> fileExtension)This function set the fileExtension provider. final UnitprovideResourceListFileName(Provider<String> resourceListFileName)This function set the resourceListFileName provider. final UnitprovideSourceSetName(Provider<String> sourceSetName)This function set the sourceSetName provider. final Unitcreate()This is logic of the task, that creates the resource list artifact. -
Methods inherited from class org.gradle.api.DefaultTask
getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, setActions, setDescription, setDidWork, setEnabled, setEnabled, setGroup -
Methods inherited from class org.gradle.api.internal.AbstractTask
getAsDynamicObject, getIdentityPath, getImpliesSubProjects, getLifecycleDependencies, getOnlyIf, getReasonNotToTrackState, getReasonTaskIsIncompatibleWithConfigurationCache, getReasonsNotToTrackState, getRequiredServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, isCompatibleWithConfigurationCache, isEnabled, isHasCustomActions, setImpliesSubProjects -
Methods inherited from class org.gradle.api.Task
configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, doNotTrackState, finalizedBy, hasProperty, mustRunAfter, notCompatibleWithConfigurationCache, onlyIf, onlyIf, onlyIf, property, setDependsOn, setFinalizedBy, setMustRunAfter, setOnlyIf, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService -
Methods inherited from class kotlin.Comparable
compareTo -
Methods inherited from class org.gradle.api.internal.TaskInternal
acceptServiceReferences, appendParallelSafeAction, doNotTrackStateIf, hasTaskActions, prependParallelSafeAction, restoreOnlyIf, restoreTaskActions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getOutputDir
@OutputDirectory() final DirectoryProperty getOutputDir()
Output directory for file gen.
-
getSourceFiles
@InputFiles()@PathSensitive(value = PathSensitivity.RELATIVE) final ConfigurableFileCollection getSourceFiles()
The source files that are used to generate the resource list. This should be configured from the plugin with file trees that include the appropriate include/exclude filters applied.
-
getExcludes
@Input() final List<String> getExcludes()
List of excludes patterns for input directory.
-
setExcludes
final Unit setExcludes(List<String> value)
List of excludes patterns for input directory.
-
getIncludes
@Input() final List<String> getIncludes()
List of includes patterns for input directory.
-
setIncludes
final Unit setIncludes(List<String> value)
List of includes patterns for input directory.
-
getFileExtension
@Input() final String getFileExtension()
File extension is used for the creation of the resource list from resource files.
-
setFileExtension
final Unit setFileExtension(String <set-?>)
File extension is used for the creation of the resource list from resource files.
-
getResourceListFileName
@Input() final String getResourceListFileName()
This is the filename of the artifact with the created resource list.
-
setResourceListFileName
final Unit setResourceListFileName(String <set-?>)
This is the filename of the artifact with the created resource list.
-
getSourceSetName
@Input() final String getSourceSetName()
This is the name of the source set with the resource files for resource list.
-
setSourceSetName
final Unit setSourceSetName(String <set-?>)
This is the name of the source set with the resource files for resource list.
-
exclude
final Unit exclude(String exclude)
Add an exclude pattern to the list of excludes.
- Parameters:
exclude- file pattern in ant style
-
provideExcludes
final Unit provideExcludes(Provider<List<String>> excludes)
This function set the excludes provider.
-
include
final Unit include(String include)
Add an include pattern to the list of includes.
- Parameters:
include- file pattern in ant style
-
provideIncludes
final Unit provideIncludes(Provider<List<String>> includes)
This function set the includes provider.
-
provideFileExtension
final Unit provideFileExtension(Provider<String> fileExtension)
This function set the fileExtension provider.
-
provideResourceListFileName
final Unit provideResourceListFileName(Provider<String> resourceListFileName)
This function set the resourceListFileName provider.
-
provideSourceSetName
final Unit provideSourceSetName(Provider<String> sourceSetName)
This function set the sourceSetName provider.
-
-
-
-