public final class MergeModulesTask extends JomcModelTask
createTransformationOutputProperty
Constructor and Description |
---|
MergeModulesTask()
Creates a new
MergeModulesTask instance. |
Modifier and Type | Method and Description |
---|---|
MergeModulesTask |
clone()
Creates and returns a copy of this object.
|
TransformerResourceType |
createModelObjectStylesheetResource()
Creates a new
modelObjectStylesheetResource element instance. |
NameType |
createModuleExclude()
Creates a new
moduleExclude element instance. |
NameType |
createModuleInclude()
Creates a new
moduleInclude element instance. |
void |
executeTask()
Merges module resources.
|
List<TransformerResourceType> |
getModelObjectStylesheetResources()
Gets the XSLT documents to use for transforming model objects.
|
String |
getModuleEncoding()
Gets the encoding of the module resource.
|
Set<NameType> |
getModuleExcludes()
Gets a set of module names to exclude.
|
File |
getModuleFile()
Gets the file to write the merged module to.
|
Set<NameType> |
getModuleIncludes()
Gets a set of module names to include.
|
String |
getModuleName()
Gets the name of the merged module.
|
String |
getModuleVendor()
Gets the vendor of the merged module.
|
String |
getModuleVersion()
Gets the version of the merged module.
|
boolean |
isModuleExcluded(Module module)
Tests exclusion of a given module based on property
moduleExcludes . |
boolean |
isModuleIncluded(Module module)
Tests inclusion of a given module based on property
moduleIncludes . |
void |
preExecuteTask()
Called by the
execute method prior to the executeTask method. |
void |
setModuleEncoding(String value)
Sets the encoding of the module resource.
|
void |
setModuleFile(File value)
Sets the file to write the merged module to.
|
void |
setModuleName(String value)
Sets the name of the merged module.
|
void |
setModuleVendor(String value)
Sets the vendor of the merged module.
|
void |
setModuleVersion(String value)
Sets the version of the merged module.
|
createModuleResource, getModel, getModuleLocation, getModuleResources, getTransformerLocation, isJavaValidationEnabled, isModelObjectClasspathResolutionEnabled, isModelResourceValidationEnabled, newModelContext, setJavaValidationEnabled, setModelObjectClasspathResolutionEnabled, setModelResourceValidationEnabled, setModuleLocation, setTransformerLocation
assertKeysNotNull, assertLocationsNotNull, assertNamesNotNull, assertNotNull, createClasspath, createModelContextAttribute, createTransformationOutputProperty, createTransformationParameter, createTransformationParameterResource, execute, getClasspath, getDirectory, getIf, getModel, getModelContextAttributes, getModelContextFactoryClassName, getModletLocation, getModletSchemaSystemId, getPlatformProviderLocation, getProperties, getProviderLocation, getResource, getResources, getTransformationOutputProperties, getTransformationParameterResources, getTransformationParameters, getTransformer, getUnless, isModelProcessingEnabled, isModletResourceValidationEnabled, logMessage, logMessage, logSeparator, logValidationReport, newProjectClassLoader, postExecuteTask, setClasspath, setClasspathRef, setIf, setModel, setModelContextFactoryClassName, setModelProcessingEnabled, setModletLocation, setModletResourceValidationEnabled, setModletSchemaSystemId, setPlatformProviderLocation, setProviderLocation, setUnless
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public MergeModulesTask()
MergeModulesTask
instance.public File getModuleFile()
null
.setModuleFile(java.io.File)
public void setModuleFile(File value)
value
- The new file to write the merged module to or null
.getModuleFile()
public String getModuleEncoding()
setModuleEncoding(java.lang.String)
public void setModuleEncoding(String value)
value
- The new encoding of the module resource or null
.getModuleEncoding()
public String getModuleName()
null
.setModuleName(java.lang.String)
public void setModuleName(String value)
value
- The new name of the merged module or null
.getModuleName()
public String getModuleVersion()
null
.setModuleVersion(java.lang.String)
public void setModuleVersion(String value)
value
- The new version of the merged module or null
.getModuleVersion()
public String getModuleVendor()
null
.setModuleVendor(java.lang.String)
public void setModuleVendor(String value)
value
- The new vendor of the merged module or null
.getModuleVendor()
public Set<NameType> getModuleIncludes()
This accessor method returns a reference to the live set, not a snapshot. Therefore any modification you make
to the returned set will be present inside the object. This is why there is no set
method for the
module includes property.
createModuleInclude()
public NameType createModuleInclude()
moduleInclude
element instance.moduleInclude
element instance.getModuleIncludes()
public Set<NameType> getModuleExcludes()
This accessor method returns a reference to the live set, not a snapshot. Therefore any modification you make
to the returned set will be present inside the object. This is why there is no set
method for the
module excludes property.
createModuleExclude()
public NameType createModuleExclude()
moduleExclude
element instance.moduleExclude
element instance.getModuleExcludes()
public List<TransformerResourceType> getModelObjectStylesheetResources()
This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make
to the returned list will be present inside the object. This is why there is no set
method for the
model object stylesheet resources property.
createModelObjectStylesheetResource()
public TransformerResourceType createModelObjectStylesheetResource()
modelObjectStylesheetResource
element instance.modelObjectStylesheetResource
element instance.getModelObjectStylesheetResources()
public void preExecuteTask() throws org.apache.tools.ant.BuildException
execute
method prior to the executeTask
method.preExecuteTask
in class JomcModelTask
org.apache.tools.ant.BuildException
- if execution fails.JomcTask.execute()
public void executeTask() throws org.apache.tools.ant.BuildException
executeTask
in class JomcTask
org.apache.tools.ant.BuildException
- if merging module resources fails.JomcTask.execute()
public boolean isModuleIncluded(Module module)
moduleIncludes
.module
- The module to test.true
, if module
is included based on property moduleIncludes
.NullPointerException
- if module
is null
.getModuleIncludes()
public boolean isModuleExcluded(Module module)
moduleExcludes
.module
- The module to test.true
, if module
is excluded based on property moduleExcludes
.NullPointerException
- if module
is null
.getModuleExcludes()
public MergeModulesTask clone()
clone
in class JomcModelTask
Copyright © 2005–2014 The JOMC Project. All rights reserved.