Class ModuleSources
java.lang.Object
org.apache.maven.plugins.assembly.model.ModuleSources
- All Implemented Interfaces:
Serializable
Contains configuration options for including the source
files of a
project module in an assembly.
- Version:
- $Revision$ $Date$
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addExclude
(String string) Method addExclude.void
addFileSet
(FileSet fileSet) Method addFileSet.void
addInclude
(String string) Method addInclude.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 getFileSets.Method getIncludes.Get sets the output directory relative to the root of the root directory of the assembly.Get sets the mapping pattern for all module base-directories included in this assembly.boolean
Get specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module.boolean
Get specifies whether the module's finalName should be prepended to the outputDirectory values of any fileSets applied to it.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
removeFileSet
(FileSet fileSet) Method removeFileSet.void
removeInclude
(String string) Method removeInclude.void
setDirectoryMode
(String directoryMode) Set similar to a UNIX permission, sets the directory mode of the directories included.void
setExcludes
(List<String> excludes) Set when <exclude> subelements are present, they define a set of files and directory to exclude.void
setExcludeSubModuleDirectories
(boolean excludeSubModuleDirectories) Set specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module.void
setFileMode
(String fileMode) Set similar to a UNIX permission, sets the file mode of the files included.void
setFileSets
(List<FileSet> fileSets) Set specifies which groups of files from each included module to include in the assembly.void
setIncludeModuleDirectory
(boolean includeModuleDirectory) Set specifies whether the module's finalName should be prepended to the outputDirectory values of any fileSets applied to it.void
setIncludes
(List<String> includes) Set when <include> subelements are present, they define a set of files and directory to include.void
setOutputDirectory
(String outputDirectory) Set sets the output directory relative to the root of the root directory of the assembly.void
setOutputDirectoryMapping
(String outputDirectoryMapping) Set sets the mapping pattern for all module base-directories included in this assembly.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
-
ModuleSources
public ModuleSources()
-
-
Method Details
-
addExclude
Method addExclude.- Parameters:
string
- a string object.
-
addFileSet
Method addFileSet.- Parameters:
fileSet
- a fileSet object.
-
addInclude
Method addInclude.- Parameters:
string
- a string object.
-
getDirectoryMode
Get 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
-
getExcludes
Method getExcludes.- Returns:
- List
-
getFileMode
Get 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
-
getFileSets
Method getFileSets.- Returns:
- List
-
getIncludes
Method getIncludes.- Returns:
- List
-
getOutputDirectory
Get 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
-
getOutputDirectoryMapping
Get sets the mapping pattern for all module base-directories included in this assembly. NOTE: This field is only used if includeModuleDirectory == true. Default is the module's ${artifactId} in 2.2-beta-1, and ${module.artifactId} in subsequent versions. (Since 2.2).- Returns:
- String
-
isExcludeSubModuleDirectories
public boolean isExcludeSubModuleDirectories()Get specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module. This might be useful if you only mean to copy the sources for the exact module list matched by this ModuleSet, ignoring (or processing separately) the modules which exist in directories below the current one. Default value is true. (Since 2.2).- Returns:
- boolean
-
isIncludeModuleDirectory
public boolean isIncludeModuleDirectory()Get specifies whether the module's finalName should be prepended to the outputDirectory values of any fileSets applied to it. Default value is true. (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.
-
removeFileSet
Method removeFileSet.- Parameters:
fileSet
- a fileSet object.
-
removeInclude
Method removeInclude.- Parameters:
string
- a string object.
-
setDirectoryMode
Set 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.
-
setExcludeSubModuleDirectories
public void setExcludeSubModuleDirectories(boolean excludeSubModuleDirectories) Set specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module. This might be useful if you only mean to copy the sources for the exact module list matched by this ModuleSet, ignoring (or processing separately) the modules which exist in directories below the current one. Default value is true. (Since 2.2).- Parameters:
excludeSubModuleDirectories
- a excludeSubModuleDirectories object.
-
setExcludes
Set 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.
-
setFileMode
Set 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.
-
setFileSets
Set specifies which groups of files from each included module to include in the assembly. A fileSet is specified by providing one or more of <fileSet> subelements. (Since 2.2).- Parameters:
fileSets
- a fileSets object.
-
setIncludeModuleDirectory
public void setIncludeModuleDirectory(boolean includeModuleDirectory) Set specifies whether the module's finalName should be prepended to the outputDirectory values of any fileSets applied to it. Default value is true. (Since 2.2).- Parameters:
includeModuleDirectory
- a includeModuleDirectory object
-
setIncludes
Set 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.
-
setOutputDirectory
Set 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.
-
setOutputDirectoryMapping
Set sets the mapping pattern for all module base-directories included in this assembly. NOTE: This field is only used if includeModuleDirectory == true. Default is the module's ${artifactId} in 2.2-beta-1, and ${module.artifactId} in subsequent versions. (Since 2.2).- Parameters:
outputDirectoryMapping
- a outputDirectoryMapping 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.
-