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 DefaultTask
                        

    This task creates a resource list artifacts from other files configured with parameters.

    • Constructor Detail

      • ResourceListFileTask

        ResourceListFileTask(ObjectFactory objectFactory, FileSystemOperations fileSystemOps)
    • 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.

      • 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.

      • 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
      • include

         final Unit include(String include)

        Add an include pattern to the list of includes.

        Parameters:
        include - file pattern in ant style
      • create

         final Unit create()

        This is logic of the task, that creates the resource list artifact.