|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.jomc.ant.JomcTask
org.jomc.ant.JomcModelTask
org.jomc.ant.MergeModulesTask
public final class MergeModulesTask
Task for merging module resources.
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
description, location, project |
Constructor Summary | |
---|---|
MergeModulesTask()
Creates a new MergeModulesTask instance. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.tools.ant.Task |
---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getDescription, getLocation, getProject, setDescription, setLocation, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MergeModulesTask()
MergeModulesTask
instance.
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2005-2012 The JOMC Project. All Rights Reserved. |