Class ModuleSources
- java.lang.Object
- 
- org.apache.maven.plugins.assembly.model.ModuleSources
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class ModuleSources extends Object implements Serializable Contains configuration options for including the source files of a project module in an assembly.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description ModuleSources()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExclude(String string)Method addExclude.voidaddFileSet(FileSet fileSet)Method addFileSet.voidaddInclude(String string)Method addInclude.StringgetDirectoryMode()Get similar to a UNIX permission, sets the directory mode of the directories included.List<String>getExcludes()Method getExcludes.StringgetFileMode()Get similar to a UNIX permission, sets the file mode of the files included.List<FileSet>getFileSets()Method getFileSets.List<String>getIncludes()Method getIncludes.StringgetOutputDirectory()Get sets the output directory relative to the root of the root directory of the assembly.StringgetOutputDirectoryMapping()Get sets the mapping pattern for all module base-directories included in this assembly.booleanisExcludeSubModuleDirectories()Get specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module.booleanisIncludeModuleDirectory()Get specifies whether the module's finalName should be prepended to the outputDirectory values of any fileSets applied to it.booleanisUseDefaultExcludes()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.voidremoveExclude(String string)Method removeExclude.voidremoveFileSet(FileSet fileSet)Method removeFileSet.voidremoveInclude(String string)Method removeInclude.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.voidsetExcludeSubModuleDirectories(boolean excludeSubModuleDirectories)Set specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module.voidsetFileMode(String fileMode)Set similar to a UNIX permission, sets the file mode of the files included.voidsetFileSets(List<FileSet> fileSets)Set specifies which groups of files from each included module to include in the assembly.voidsetIncludeModuleDirectory(boolean includeModuleDirectory)Set specifies whether the module's finalName should be prepended to the outputDirectory values of any fileSets applied to it.voidsetIncludes(List<String> includes)Set when <include> subelements are present, they define a set of files and directory to include.voidsetOutputDirectory(String outputDirectory)Set sets the output directory relative to the root of the root directory of the assembly.voidsetOutputDirectoryMapping(String outputDirectoryMapping)Set sets the mapping pattern for all module base-directories included in this 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.
 
- 
- 
- 
Method Detail- 
addExcludepublic void addExclude(String string) Method addExclude.- Parameters:
- string- a string object.
 
 - 
addFileSetpublic void addFileSet(FileSet fileSet) Method addFileSet.- Parameters:
- fileSet- a fileSet object.
 
 - 
addIncludepublic void addInclude(String string) Method addInclude.- Parameters:
- string- a string object.
 
 - 
getDirectoryModepublic String 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
 
 - 
getFileModepublic String 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
 
 - 
getOutputDirectorypublic String 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
 
 - 
getOutputDirectoryMappingpublic 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
 
 - 
isExcludeSubModuleDirectoriespublic 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
 
 - 
isIncludeModuleDirectorypublic 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
 
 - 
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
 
 - 
removeExcludepublic void removeExclude(String string) Method removeExclude.- Parameters:
- string- a string object.
 
 - 
removeFileSetpublic void removeFileSet(FileSet fileSet) Method removeFileSet.- Parameters:
- fileSet- a fileSet object.
 
 - 
removeIncludepublic void removeInclude(String string) Method removeInclude.- Parameters:
- string- a string object.
 
 - 
setDirectoryModepublic void setDirectoryMode(String directoryMode) 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.
 
 - 
setExcludeSubModuleDirectoriespublic 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.
 
 - 
setExcludespublic void setExcludes(List<String> excludes) 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.
 
 - 
setFileModepublic void setFileMode(String fileMode) 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.
 
 - 
setFileSetspublic void setFileSets(List<FileSet> fileSets) 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.
 
 - 
setIncludeModuleDirectorypublic 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
 
 - 
setIncludespublic void setIncludes(List<String> includes) 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.
 
 - 
setOutputDirectorypublic void setOutputDirectory(String outputDirectory) 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.
 
 - 
setOutputDirectoryMappingpublic void setOutputDirectoryMapping(String outputDirectoryMapping) 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
 
 - 
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.
 
 
- 
 
-