Class FileSet
java.lang.Object
org.apache.maven.plugins.assembly.model.FileSet
- All Implemented Interfaces:
- Serializable
A fileSet allows the inclusion of groups of files into
 the assembly.
- Version:
- $Revision$ $Date$
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidaddExclude(String string) Method addExclude.voidaddInclude(String string) Method addInclude.voidaddNonFilteredFileExtension(String string) Method addNonFilteredFileExtension.Get sets the absolute or relative location from the module's directory.Get similar to a UNIX permission, sets the directory mode of the directories included.Method getExcludes.Get similar to a UNIX permission, sets the file mode of the files included.Method getIncludes.Get sets the line-endings of the files in this fileSet.Method getNonFilteredFileExtensions.Get sets the output directory relative to the root of the root directory of the assembly.booleanGet whether to filter symbols in the files as they are copied, 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.voidsetDirectory(String directory) Set sets the absolute or relative location from the module's directory.voidsetDirectoryMode(String directoryMode) Set similar to a UNIX permission, sets the directory mode of the directories included.voidsetExcludes(List<String> excludes) Set when <exclude> subelements are present, they define a set of files and directory to exclude.voidsetFileMode(String fileMode) Set similar to a UNIX permission, sets the file mode of the files included.voidsetFiltered(boolean filtered) Set whether to filter symbols in the files as they are copied, using properties from the build configuration.voidsetIncludes(List<String> includes) Set when <include> subelements are present, they define a set of files and directory to include.voidsetLineEnding(String lineEnding) Set sets the line-endings of the files in this fileSet.voidsetNonFilteredFileExtensions(List<String> nonFilteredFileExtensions) Set additional file extensions to not apply filtering (Since 3.2.0).voidsetOutputDirectory(String outputDirectory) Set sets the output directory relative to the root of the root directory of the assembly.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- 
FileSetpublic FileSet()
 
- 
- 
Method Details- 
addExcludeMethod addExclude.- Parameters:
- string- a string object.
 
- 
addIncludeMethod addInclude.- Parameters:
- string- a string object.
 
- 
addNonFilteredFileExtensionMethod addNonFilteredFileExtension.- Parameters:
- string- a string object.
 
- 
getDirectoryGet 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
 
- 
getDirectoryModeGet 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
 
- 
getExcludesMethod getExcludes.- Returns:
- List
 
- 
getFileModeGet 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
 
- 
getIncludesMethod getIncludes.- Returns:
- List
 
- 
getLineEndingGet 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
 
- 
getNonFilteredFileExtensionsMethod getNonFilteredFileExtensions.- Returns:
- List
 
- 
getOutputDirectoryGet 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
 
- 
isFilteredpublic 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
 
- 
isUseDefaultExcludespublic 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
 
- 
removeExcludeMethod removeExclude.- Parameters:
- string- a string object.
 
- 
removeIncludeMethod removeInclude.- Parameters:
- string- a string object.
 
- 
removeNonFilteredFileExtensionMethod removeNonFilteredFileExtension.- Parameters:
- string- a string object.
 
- 
setDirectorySet 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- a directory object.
 
- 
setDirectoryModeSet 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- a directoryMode object.
 
- 
setExcludesSet 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- a excludes object.
 
- 
setFileModeSet 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- a fileMode object.
 
- 
setFilteredpublic 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- a filtered object.
 
- 
setIncludesSet 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- a includes object.
 
- 
setLineEndingSet 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- a lineEnding object.
 
- 
setNonFilteredFileExtensionsSet additional file extensions to not apply filtering (Since 3.2.0).- Parameters:
- nonFilteredFileExtensions- a nonFilteredFileExtensions object.
 
- 
setOutputDirectorySet 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- a outputDirectory object.
 
- 
setUseDefaultExcludespublic 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.
 
 
-