Class DirConfig

  • All Implemented Interfaces:

    
    public class DirConfig
    
                        

    This is part of the project extension and describes a single directory with excludes and includes. Furthermore it contains a property for the target. The task that uses this configuration transforms this to copyspec configuration.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      DirConfig(ObjectFactory objectFactory, String name) creates a configuration of a simple copyspec.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • DirConfig

        DirConfig(ObjectFactory objectFactory, String name)

        creates a configuration of a simple copyspec.

    • Method Detail

      • getName

         final String getName()

        only for internal use in a named container.

      • getDir

        @Optional()@InputDirectory()@PathSensitive(value = PathSensitivity.RELATIVE) final DirectoryProperty getDir()
      • excludes

         final Unit excludes(Collection<String> patterns)

        Adds a collection of patterns to the exclude list.

        Parameters:
        patterns - a collection of Ant style file pattern.
      • exclude

         final Unit exclude(String pattern)

        Adds a single pattern to the exclude list.

        Parameters:
        pattern - Ant style file pattern.
      • includes

         final Unit includes(Collection<String> patterns)

        Adds a collection of patterns to the include list.

        Parameters:
        patterns - a collection of Ant style file pattern.
      • include

         final Unit include(String pattern)

        Adds a single pattern to the include list.

        Parameters:
        pattern - Ant style file pattern.