Class FileSet

    • Constructor Summary

      Constructors 
      Constructor Description
      FileSet()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExclude​(String string)
      Method addExclude.
      void addInclude​(String string)
      Method addInclude.
      String getDirectory()
      Get sets the absolute or relative location from the module's directory.
      String getDirectoryMode()
      Get similar to a UNIX permission, sets the directory mode of the directories included.
      List<String> getExcludes()
      Method getExcludes.
      String getFileMode()
      Get similar to a UNIX permission, sets the file mode of the files included.
      List<String> getIncludes()
      Method getIncludes.
      String getLineEnding()
      Get sets the line-endings of the files in this fileSet.
      String getOutputDirectory()
      Get sets the output directory relative to the root of the root directory of the assembly.
      boolean isFiltered()
      Get whether to filter symbols in the files as they are copied, using properties from the build configuration.
      boolean isUseDefaultExcludes()
      Get whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set.
      void removeExclude​(String string)
      Method removeExclude.
      void removeInclude​(String string)
      Method removeInclude.
      void setDirectory​(String directory)
      Set sets the absolute or relative location from the module's directory.
      void setDirectoryMode​(String directoryMode)
      Set similar to a UNIX permission, sets the directory mode of the directories included.
      void setExcludes​(List<String> excludes)
      Set when <exclude> subelements are present, they define a set of files and directory to exclude.
      void setFileMode​(String fileMode)
      Set similar to a UNIX permission, sets the file mode of the files included.
      void setFiltered​(boolean filtered)
      Set whether to filter symbols in the files as they are copied, using properties from the build configuration.
      void setIncludes​(List<String> includes)
      Set when <include> subelements are present, they define a set of files and directory to include.
      void setLineEnding​(String lineEnding)
      Set sets the line-endings of the files in this fileSet.
      void setOutputDirectory​(String outputDirectory)
      Set sets the output directory relative to the root of the root directory of the assembly.
      void setUseDefaultExcludes​(boolean useDefaultExcludes)
      Set whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set.
    • Constructor Detail

      • FileSet

        public FileSet()
    • Method Detail

      • addExclude

        public void addExclude​(String string)
        Method addExclude.
        Parameters:
        string -
      • addInclude

        public void addInclude​(String string)
        Method addInclude.
        Parameters:
        string -
      • getDirectory

        public String getDirectory()
        Get sets the absolute or relative location from the module's directory. For example, "src/main/bin" would select this subdirectory of the project in which this dependency is defined.
        Returns:
        String
      • getDirectoryMode

        public String getDirectoryMode()
        Get similar to a UNIX permission, sets the directory mode of the directories included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0755 translates to User read-write, Group and Other read-only. The default value is 0755. (more on unix-style permissions)
        Returns:
        String
      • getExcludes

        public List<String> getExcludes()
        Method getExcludes.
        Returns:
        List
      • getFileMode

        public String getFileMode()
        Get similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0644 translates to User read-write, Group and Other read-only. The default value is 0644. (more on unix-style permissions)
        Returns:
        String
      • getIncludes

        public List<String> getIncludes()
        Method getIncludes.
        Returns:
        List
      • getLineEnding

        public String getLineEnding()
        Get sets the line-endings of the files in this fileSet. Valid values:
        • "keep" - Preserve all line endings
        • "unix" - Use Unix-style line endings
        • "lf" - Use a single line-feed line endings
        • "dos" - Use DOS-style line endings
        • "crlf" - Use Carraige-return, line-feed line endings
        Returns:
        String
      • getOutputDirectory

        public String getOutputDirectory()
        Get sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory.
        Returns:
        String
      • isFiltered

        public boolean isFiltered()
        Get whether to filter symbols in the files as they are copied, using properties from the build configuration. (Since 2.2).
        Returns:
        boolean
      • isUseDefaultExcludes

        public boolean isUseDefaultExcludes()
        Get whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set. For backward compatibility, the default value is true. (Since 2.2).
        Returns:
        boolean
      • removeExclude

        public void removeExclude​(String string)
        Method removeExclude.
        Parameters:
        string -
      • removeInclude

        public void removeInclude​(String string)
        Method removeInclude.
        Parameters:
        string -
      • setDirectory

        public void setDirectory​(String directory)
        Set sets the absolute or relative location from the module's directory. For example, "src/main/bin" would select this subdirectory of the project in which this dependency is defined.
        Parameters:
        directory -
      • setDirectoryMode

        public void setDirectoryMode​(String directoryMode)
        Set similar to a UNIX permission, sets the directory mode of the directories included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0755 translates to User read-write, Group and Other read-only. The default value is 0755. (more on unix-style permissions)
        Parameters:
        directoryMode -
      • setExcludes

        public void setExcludes​(List<String> excludes)
        Set when <exclude> subelements are present, they define a set of files and directory to exclude. If none is present, then <excludes> represents no exclusions.
        Parameters:
        excludes -
      • setFileMode

        public void setFileMode​(String fileMode)
        Set similar to a UNIX permission, sets the file mode of the files included. THIS IS AN OCTAL VALUE. Format: (User)(Group)(Other) where each component is a sum of Read = 4, Write = 2, and Execute = 1. For example, the value 0644 translates to User read-write, Group and Other read-only. The default value is 0644. (more on unix-style permissions)
        Parameters:
        fileMode -
      • setFiltered

        public void setFiltered​(boolean filtered)
        Set whether to filter symbols in the files as they are copied, using properties from the build configuration. (Since 2.2).
        Parameters:
        filtered -
      • setIncludes

        public void setIncludes​(List<String> includes)
        Set when <include> subelements are present, they define a set of files and directory to include. If none is present, then <includes> represents all valid values.
        Parameters:
        includes -
      • setLineEnding

        public void setLineEnding​(String lineEnding)
        Set sets the line-endings of the files in this fileSet. Valid values:
        • "keep" - Preserve all line endings
        • "unix" - Use Unix-style line endings
        • "lf" - Use a single line-feed line endings
        • "dos" - Use DOS-style line endings
        • "crlf" - Use Carraige-return, line-feed line endings
        Parameters:
        lineEnding -
      • setOutputDirectory

        public void setOutputDirectory​(String outputDirectory)
        Set sets the output directory relative to the root of the root directory of the assembly. For example, "log" will put the specified files in the log directory.
        Parameters:
        outputDirectory -
      • setUseDefaultExcludes

        public void setUseDefaultExcludes​(boolean useDefaultExcludes)
        Set whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set. For backward compatibility, the default value is true. (Since 2.2).
        Parameters:
        useDefaultExcludes -