
public class SourceFileProcessorTask extends JomcToolTask
processSourceFiles()createVelocityPropertycreateTransformationOutputProperty| Constructor and Description | 
|---|
SourceFileProcessorTask()
Creates a new  
SourceFileProcessorTask instance. | 
| Modifier and Type | Method and Description | 
|---|---|
SourceFileProcessorTask | 
clone()
Creates and returns a copy of this object. 
 | 
void | 
configureSourceFileProcessor(SourceFileProcessor sourceFileProcessor)
Configures a given  
SourceFileProcessor instance using the properties of the instance. | 
void | 
executeTask()
Calls the  
processSourceFiles method if source processing is enabled. | 
Class<? extends SourceFileProcessor> | 
getSourceFileProcessorClass()
Gets the class of the  
SourceFileProcessor backing the task. | 
boolean | 
isSourceProcessingEnabled()
Gets a flag indicating the processing of source files is enabled. 
 | 
SourceFileProcessor | 
newSourceFileProcessor()
Creates a new  
SourceFileProcessor instance setup using the properties of the instance. | 
void | 
processSourceFiles()
Processes source files. 
 | 
void | 
setSourceFileProcessorClass(Class<? extends SourceFileProcessor> value)
Sets the class of the  
SourceFileProcessor backing the task. | 
void | 
setSourceProcessingEnabled(boolean value)
Sets the flag indicating the processing of source files is enabled. 
 | 
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, preExecuteTask, setDefaultTemplateEncoding, setDefaultTemplateProfile, setImplementation, setIndentation, setInputEncoding, setLineSeparator, setModule, setOutputEncoding, setSpecification, setTemplateEncoding, setTemplateLocation, setTemplateProfilecreateModuleResource, getModel, getModuleLocation, getModuleResources, getTransformerLocation, isJavaValidationEnabled, isModelObjectClasspathResolutionEnabled, isModelResourceValidationEnabled, newModelContext, setJavaValidationEnabled, setModelObjectClasspathResolutionEnabled, setModelResourceValidationEnabled, setModuleLocation, setTransformerLocationassertKeysNotNull, assertLocationsNotNull, assertNamesNotNull, assertNotNull, createClasspath, createModelContextAttribute, createTransformationOutputProperty, createTransformationParameter, createTransformationParameterResource, execute, getClasspath, getDirectory, getExecutorService, getIf, getModel, getModelContextAttributes, getModelContextFactoryClassName, getModletLocation, getModletSchemaSystemId, getPlatformProviderLocation, getProperties, getProviderLocation, getResource, getResources, getThreads, getTransformationOutputProperties, getTransformationParameterResources, getTransformationParameters, getTransformer, getUnless, isModelProcessingEnabled, isModletResourceValidationEnabled, logMessage, logMessage, logSeparator, logValidationReport, newProjectClassLoader, setClasspath, setClasspathRef, setIf, setModel, setModelContextFactoryClassName, setModelProcessingEnabled, setModletLocation, setModletResourceValidationEnabled, setModletSchemaSystemId, setPlatformProviderLocation, setProviderLocation, setThreads, setUnlessbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic SourceFileProcessorTask()
SourceFileProcessorTask instance.public final boolean isSourceProcessingEnabled()
true, if processing of source files is enabled; false, else.setSourceProcessingEnabled(boolean)public final void setSourceProcessingEnabled(boolean value)
value - true, to enable processing of source files; false, to disable processing of source
 files.isSourceProcessingEnabled()public final Class<? extends SourceFileProcessor> getSourceFileProcessorClass()
SourceFileProcessor backing the task.SourceFileProcessor backing the task.setSourceFileProcessorClass(java.lang.Class)public final void setSourceFileProcessorClass(Class<? extends SourceFileProcessor> value)
SourceFileProcessor backing the task.value - The new class of the SourceFileProcessor backing the task or null.getSourceFileProcessorClass()public SourceFileProcessor newSourceFileProcessor() throws org.apache.tools.ant.BuildException
SourceFileProcessor instance setup using the properties of the instance.SourceFileProcessor instance.org.apache.tools.ant.BuildException - if creating a new SourceFileProcessor instance fails.getSourceFileProcessorClass(), 
configureSourceFileProcessor(org.jomc.tools.SourceFileProcessor)public void configureSourceFileProcessor(SourceFileProcessor sourceFileProcessor) throws org.apache.tools.ant.BuildException
SourceFileProcessor instance using the properties of the instance.sourceFileProcessor - The source file processor to configure.NullPointerException - if sourceFileProcessor is null.org.apache.tools.ant.BuildException - if configuring sourceFileProcessor fails.JomcToolTask.configureJomcTool(org.jomc.tools.JomcTool)public final void executeTask() throws org.apache.tools.ant.BuildException
processSourceFiles method if source processing is enabled.executeTask in class JomcTaskorg.apache.tools.ant.BuildException - if processing source files fails.processSourceFiles()public void processSourceFiles() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException - if processing source files fails.executeTask()public SourceFileProcessorTask clone()
clone in class JomcToolTaskCopyright © 2005–2016 The JOMC Project. All rights reserved.