org.apache.maven.plugin.assembly.model
Class ModuleSources

java.lang.Object
  extended by org.apache.maven.plugin.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 Summary
ModuleSources()
           
 
Method Summary
 void addExclude(String string)
          Method addExclude.
 void addFileSet(FileSet fileSet)
          Method addFileSet.
 void addInclude(String string)
          Method addInclude.
 String getDirectoryMode()
          Get similar to a UNIX permission, sets the directory mode of the directories included.
 List<String> getExcludes()
          Method getExcludes.
 String getFileMode()
          Get similar to a UNIX permission, sets the file mode of the files included.
 List<FileSet> getFileSets()
          Method getFileSets.
 List<String> getIncludes()
          Method getIncludes.
 String getOutputDirectory()
          Get sets the output directory relative to the root of the root directory of the assembly.
 String getOutputDirectoryMapping()
          Get sets the mapping pattern for all module base-directories included in this assembly.
 boolean isExcludeSubModuleDirectories()
          Get specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module.
 boolean isIncludeModuleDirectory()
          Get specifies whether the module's finalName should be prepended to the outputDirectory values of any fileSets applied to it.
 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.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleSources

public ModuleSources()
Method Detail

addExclude

public void addExclude(String string)
Method addExclude.

Parameters:
string -

addFileSet

public void addFileSet(FileSet fileSet)
Method addFileSet.

Parameters:
fileSet -

addInclude

public void addInclude(String string)
Method addInclude.

Parameters:
string -

getDirectoryMode

public 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. (more on unix-style permissions)

Returns:
String

getExcludes

public List<String> getExcludes()
Method getExcludes.

Returns:
List

getFileMode

public 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. (more on unix-style permissions)

Returns:
String

getFileSets

public List<FileSet> getFileSets()
Method getFileSets.

Returns:
List

getIncludes

public List<String> getIncludes()
Method getIncludes.

Returns:
List

getOutputDirectory

public 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

getOutputDirectoryMapping

public 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

public void removeExclude(String string)
Method removeExclude.

Parameters:
string -

removeFileSet

public void removeFileSet(FileSet fileSet)
Method removeFileSet.

Parameters:
fileSet -

removeInclude

public void removeInclude(String string)
Method removeInclude.

Parameters:
string -

setDirectoryMode

public 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. (more on unix-style permissions)

Parameters:
directoryMode -

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 -

setExcludes

public 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 -

setFileMode

public 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. (more on unix-style permissions)

Parameters:
fileMode -

setFileSets

public 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 -

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 -

setIncludes

public 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 -

setOutputDirectory

public 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 -

setOutputDirectoryMapping

public 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 -

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 -


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.