Class UnpackOptions

  • All Implemented Interfaces:
    java.io.Serializable

    public class UnpackOptions
    extends java.lang.Object
    implements java.io.Serializable
    Specifies options for including/excluding/filtering items extracted from an archive. (Since 2.2) .
    Version:
    $Revision$ $Date$
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String encoding
      Allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding.
      private java.util.List<java.lang.String> excludes
      Field excludes.
      private boolean filtered
      Whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration.
      private java.util.List<java.lang.String> includes
      Field includes.
      private java.lang.String lineEnding
      Sets the line-endings of the files.
      private java.util.List<java.lang.String> nonFilteredFileExtensions
      Field nonFilteredFileExtensions.
      private boolean useDefaultExcludes
      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 Summary

      Constructors 
      Constructor Description
      UnpackOptions()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addExclude​(java.lang.String string)
      Method addExclude.
      void addInclude​(java.lang.String string)
      Method addInclude.
      void addNonFilteredFileExtension​(java.lang.String string)
      Method addNonFilteredFileExtension.
      java.lang.String getEncoding()
      Get allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding.
      java.util.List<java.lang.String> getExcludes()
      Method getExcludes.
      java.util.List<java.lang.String> getIncludes()
      Method getIncludes.
      java.lang.String getLineEnding()
      Get sets the line-endings of the files.
      java.util.List<java.lang.String> getNonFilteredFileExtensions()
      Method getNonFilteredFileExtensions.
      boolean isFiltered()
      Get whether to filter symbols in the files as they are unpacked from the archive, 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​(java.lang.String string)
      Method removeExclude.
      void removeInclude​(java.lang.String string)
      Method removeInclude.
      void removeNonFilteredFileExtension​(java.lang.String string)
      Method removeNonFilteredFileExtension.
      void setEncoding​(java.lang.String encoding)
      Set allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding.
      void setExcludes​(java.util.List<java.lang.String> excludes)
      Set set of file and/or directory patterns for matching items to be excluded from an archive as it is unpacked.
      void setFiltered​(boolean filtered)
      Set whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration.
      void setIncludes​(java.util.List<java.lang.String> includes)
      Set set of file and/or directory patterns for matching items to be included from an archive as it is unpacked.
      void setLineEnding​(java.lang.String lineEnding)
      Set sets the line-endings of the files.
      void setNonFilteredFileExtensions​(java.util.List<java.lang.String> nonFilteredFileExtensions)
      Set additional file extensions to not apply filtering (Since 3.2.0).
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • includes

        private java.util.List<java.lang.String> includes
        Field includes.
      • excludes

        private java.util.List<java.lang.String> excludes
        Field excludes.
      • filtered

        private boolean filtered
        Whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration. (Since 2.2) .
      • nonFilteredFileExtensions

        private java.util.List<java.lang.String> nonFilteredFileExtensions
        Field nonFilteredFileExtensions.
      • lineEnding

        private java.lang.String lineEnding
        Sets the line-endings of the files. (Since 2.2) 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
      • useDefaultExcludes

        private boolean useDefaultExcludes
        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) .
      • encoding

        private java.lang.String encoding
        Allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding. If unspecified, archiver default will be used. Archiver defaults generally represent sane (modern) values.
    • Constructor Detail

      • UnpackOptions

        public UnpackOptions()
    • Method Detail

      • addExclude

        public void addExclude​(java.lang.String string)
        Method addExclude.
        Parameters:
        string - a string object.
      • addInclude

        public void addInclude​(java.lang.String string)
        Method addInclude.
        Parameters:
        string - a string object.
      • addNonFilteredFileExtension

        public void addNonFilteredFileExtension​(java.lang.String string)
        Method addNonFilteredFileExtension.
        Parameters:
        string - a string object.
      • getEncoding

        public java.lang.String getEncoding()
        Get allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding. If unspecified, archiver default will be used. Archiver defaults generally represent sane (modern) values.
        Returns:
        String
      • getExcludes

        public java.util.List<java.lang.String> getExcludes()
        Method getExcludes.
        Returns:
        List
      • getIncludes

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

        public java.lang.String getLineEnding()
        Get sets the line-endings of the files. (Since 2.2) 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
      • getNonFilteredFileExtensions

        public java.util.List<java.lang.String> getNonFilteredFileExtensions()
        Method getNonFilteredFileExtensions.
        Returns:
        List
      • isFiltered

        public boolean isFiltered()
        Get whether to filter symbols in the files as they are unpacked from the archive, 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​(java.lang.String string)
        Method removeExclude.
        Parameters:
        string - a string object.
      • removeInclude

        public void removeInclude​(java.lang.String string)
        Method removeInclude.
        Parameters:
        string - a string object.
      • removeNonFilteredFileExtension

        public void removeNonFilteredFileExtension​(java.lang.String string)
        Method removeNonFilteredFileExtension.
        Parameters:
        string - a string object.
      • setEncoding

        public void setEncoding​(java.lang.String encoding)
        Set allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding. If unspecified, archiver default will be used. Archiver defaults generally represent sane (modern) values.
        Parameters:
        encoding - a encoding object.
      • setExcludes

        public void setExcludes​(java.util.List<java.lang.String> excludes)
        Set set of file and/or directory patterns for matching items to be excluded from an archive as it is unpacked. Each item is specified as <exclude>some/path</exclude> (Since 2.2).
        Parameters:
        excludes - a excludes object.
      • setFiltered

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

        public void setIncludes​(java.util.List<java.lang.String> includes)
        Set set of file and/or directory patterns for matching items to be included from an archive as it is unpacked. Each item is specified as <include>some/path</include> (Since 2.2).
        Parameters:
        includes - a includes object.
      • setLineEnding

        public void setLineEnding​(java.lang.String lineEnding)
        Set sets the line-endings of the files. (Since 2.2) 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 - a lineEnding object.
      • setNonFilteredFileExtensions

        public void setNonFilteredFileExtensions​(java.util.List<java.lang.String> nonFilteredFileExtensions)
        Set additional file extensions to not apply filtering (Since 3.2.0).
        Parameters:
        nonFilteredFileExtensions - a nonFilteredFileExtensions object.
      • 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 - a useDefaultExcludes object.