Class ServerDir

  • All Implemented Interfaces:

    
    public class ServerDir
    
                        

    This is part of the project extension and describes a list of directory configuration 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
      ServerDir(ObjectFactory objectFactory, String defaultTarget, List<String> defaultExcludes, List<String> defaultIncludes) creates a configuration of a simple copyspec.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • ServerDir

        ServerDir(ObjectFactory objectFactory, String defaultTarget, List<String> defaultExcludes, List<String> defaultIncludes)

        creates a configuration of a simple copyspec.

    • Method Detail

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