Class UnpackOptions
java.lang.Object
org.apache.maven.plugins.assembly.model.UnpackOptions
- All Implemented Interfaces:
Serializable
Specifies options for including/excluding/filtering items
extracted from an archive. (Since 2.2)
.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExclude
(String string) Method addExclude.void
addInclude
(String string) Method addInclude.void
addNonFilteredFileExtension
(String string) Method addNonFilteredFileExtension.Get allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding.Method getExcludes.Method getIncludes.Get sets the line-endings of the files.Method getNonFilteredFileExtensions.boolean
Get whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration.boolean
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
removeNonFilteredFileExtension
(String string) Method removeNonFilteredFileExtension.void
setEncoding
(String encoding) Set allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding.void
setExcludes
(List<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
(List<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
(String lineEnding) Set sets the line-endings of the files.void
setNonFilteredFileExtensions
(List<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.
-
Constructor Details
-
UnpackOptions
public UnpackOptions()
-
-
Method Details
-
addExclude
Method addExclude.- Parameters:
string
- a string object.
-
addInclude
Method addInclude.- Parameters:
string
- a string object.
-
addNonFilteredFileExtension
Method addNonFilteredFileExtension.- Parameters:
string
- a string object.
-
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
Method getExcludes.- Returns:
- List
-
getIncludes
Method getIncludes.- Returns:
- List
-
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
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
Method removeExclude.- Parameters:
string
- a string object.
-
removeInclude
Method removeInclude.- Parameters:
string
- a string object.
-
removeNonFilteredFileExtension
Method removeNonFilteredFileExtension.- Parameters:
string
- a string object.
-
setEncoding
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
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
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
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
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.
-