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

java.lang.Object
  extended by org.apache.maven.plugin.assembly.model.SetBase
      extended by org.apache.maven.plugin.assembly.model.ModuleSources
All Implemented Interfaces:
Serializable

public class ModuleSources
extends SetBase
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 addFileSet(FileSet fileSet)
          Method addFileSet.
 List getFileSets()
          Method getFileSets.
 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.
 void removeFileSet(FileSet fileSet)
          Method removeFileSet.
 void setExcludeSubModuleDirectories(boolean excludeSubModuleDirectories)
          Set specifies whether sub-module directories below the current module should be excluded from fileSets applied to that module.
 void setFileSets(List 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 setOutputDirectoryMapping(String outputDirectoryMapping)
          Set sets the mapping pattern for all module base-directories included in this assembly.
 
Methods inherited from class org.apache.maven.plugin.assembly.model.SetBase
addExclude, addInclude, getDirectoryMode, getExcludes, getFileMode, getIncludes, getOutputDirectory, isUseDefaultExcludes, isUseStrictFiltering, removeExclude, removeInclude, setDirectoryMode, setExcludes, setFileMode, setIncludes, setOutputDirectory, setUseDefaultExcludes, setUseStrictFiltering
 
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

addFileSet

public void addFileSet(FileSet fileSet)
Method addFileSet.

Parameters:
fileSet -

getFileSets

public List getFileSets()
Method getFileSets.

Returns:
List

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

removeFileSet

public void removeFileSet(FileSet fileSet)
Method removeFileSet.

Parameters:
fileSet -

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 -

setFileSets

public void setFileSets(List 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 -

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 -


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.