A definition of a file-set. This model defines how file-sets can be captured, using directory, includes, and excludes.
<fileSet> <directory/> <lineEnding/> <followSymlinks/> <outputDirectory/> <useDefaultExcludes/> <includes/> <excludes/> <fileMode/> <directoryMode/> <mapper> <type/> <from/> <to/> <classname/> </mapper> </fileSet>
Defines the rules for matching and working with files in a given base directory.
Element | Type | Description |
---|---|---|
directory | String | Absolute or relative from the module's directory. For example, "src/main/bin" would select this subdirectory of the project in which this dependency is defined. |
lineEnding | String |
Controls the line-endings of files in this fileSet.
Valid values:
|
followSymlinks | boolean |
Specifies whether symbolic links should be traversed, or handled as-is.
Default value is: false. |
outputDirectory | String | Specifies 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. |
useDefaultExcludes | boolean |
Whether to include exclusion patterns for common temporary and SCM control
files (true by default).
Default value is: true. |
includes/include* | List<String> | (Many) When <include> subelements are present, they define a set of files and directory to include. |
excludes/exclude* | List<String> | (Many) When <exclude> subelements are present, they define a set of files and directory to exclude. |
fileMode | String |
Similar to a UNIX permission. Format: (User)(Group)(Other) where each
component is a sum of Read = 4, Write = 2, and Execute = 1. For example,
the default value of 0644 translates to User read-write, Group and Other
read-only.
(more on unix-style
permissions)
Default value is: 0644. |
directoryMode | String |
Similar to a UNIX permission. Format: (User)(Group)(Other) where each
component is a sum of Read = 4, Write = 2, and Execute = 1. For example,
the default value of 0755 translates to User read-write, Group and Other
read-only.
(more on unix-style
permissions)
Default value is: 0755. |
mapper | Mapper | Specifies the mapper used. |
No description.
Element | Type | Description |
---|---|---|
type | String |
Specifies a built-in mapper implementation.
Valid values:
Default value is: identity. |
from | String | Specifies a type-specific pattern for matching source paths which should be mapped. |
to | String | Specifies a type-specific pattern for producing paths based on source paths. |
classname | String | Allows specification of a custom mapper implementation. The class must be of type org.apache.maven.shared.model.fileset.mappers.FileNameMapper, from the artifact org.apache.maven.shared:file-management. |