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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddExclude(String string) Method addExclude.voidaddInclude(String string) Method addInclude.voidaddNonFilteredFileExtension(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.booleanGet whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration.booleanGet whether standard exclusion patterns, such as those matching CVS and Subversion metadata files, should be used when calculating the files affected by this set.voidremoveExclude(String string) Method removeExclude.voidremoveInclude(String string) Method removeInclude.voidremoveNonFilteredFileExtension(String string) Method removeNonFilteredFileExtension.voidsetEncoding(String encoding) Set allows to specify the encoding to use when unpacking archives, for unarchivers that support specifying encoding.voidsetExcludes(List<String> excludes) Set set of file and/or directory patterns for matching items to be excluded from an archive as it is unpacked.voidsetFiltered(boolean filtered) Set whether to filter symbols in the files as they are unpacked from the archive, using properties from the build configuration.voidsetIncludes(List<String> includes) Set set of file and/or directory patterns for matching items to be included from an archive as it is unpacked.voidsetLineEnding(String lineEnding) Set sets the line-endings of the files.voidsetNonFilteredFileExtensions(List<String> nonFilteredFileExtensions) Set additional file extensions to not apply filtering (Since 3.2.0).voidsetUseDefaultExcludes(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
-
addInclude
-
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
-
getIncludes
-
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
-
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
-
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
-
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
-
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.
-