public final class CommitClassesTask extends ClassFileProcessorTask
createVelocityProperty
createTransformationOutputProperty
Constructor and Description |
---|
CommitClassesTask()
Creates a new
CommitClassesTask instance. |
Modifier and Type | Method and Description |
---|---|
CommitClassesTask |
clone()
Creates and returns a copy of this object.
|
TransformerResourceType |
createModelObjectStylesheetResource()
Creates a new
modelObjectStylesheetResource element instance. |
File |
getClassesDirectory()
Gets the directory holding the class files to commit model objects to.
|
List<TransformerResourceType> |
getModelObjectStylesheetResources()
Gets the XSLT documents to use for transforming model objects.
|
void |
preExecuteTask()
Called by the
execute method prior to the executeTask method. |
void |
processClassFiles()
Commits model objects to class files.
|
void |
setClassesDirectory(File value)
Sets the directory holding the class files to commit model objects to.
|
configureClassFileProcessor, executeTask, getClassFileProcessorClass, isClassProcessingEnabled, newClassFileProcessor, setClassFileProcessorClass, setClassProcessingEnabled
configureJomcTool, createLocale, createTemplateParameter, createTemplateParameterResource, createVelocityProperty, createVelocityPropertyResource, getDefaultTemplateEncoding, getDefaultTemplateProfile, getImplementation, getImplementation, getIndentation, getInputEncoding, getLineSeparator, getLocale, getModule, getModule, getOutputEncoding, getSpecification, getSpecification, getTemplateEncoding, getTemplateLocation, getTemplateParameterResources, getTemplateParameters, getTemplateProfile, getVelocityProperties, getVelocityPropertyResources, isModulesProcessingRequested, postExecuteTask, setDefaultTemplateEncoding, setDefaultTemplateProfile, setImplementation, setIndentation, setInputEncoding, setLineSeparator, setModule, setOutputEncoding, setSpecification, setTemplateEncoding, setTemplateLocation, setTemplateProfile
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, 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 CommitClassesTask()
CommitClassesTask
instance.public File getClassesDirectory()
null
.setClassesDirectory(java.io.File)
public void setClassesDirectory(File value)
value
- The new directory holding the class files to commit model objects to or null
.getClassesDirectory()
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 JomcToolTask
org.apache.tools.ant.BuildException
- if execution fails.JomcTask.execute()
public void processClassFiles() throws org.apache.tools.ant.BuildException
processClassFiles
in class ClassFileProcessorTask
org.apache.tools.ant.BuildException
- if committing model objects fails.ClassFileProcessorTask.executeTask()
public CommitClassesTask clone()
clone
in class ClassFileProcessorTask
Copyright © 2005–2014 The JOMC Project. All rights reserved.