public class ResourceFileProcessorTask extends JomcToolTask
processResourceFiles()
createVelocityProperty
createTransformationOutputProperty
Constructor and Description |
---|
ResourceFileProcessorTask()
Creates a new
ResourceFileProcessorTask instance. |
Modifier and Type | Method and Description |
---|---|
ResourceFileProcessorTask |
clone()
Creates and returns a copy of this object.
|
void |
configureResourceFileProcessor(ResourceFileProcessor resourceFileProcessor)
Configures a given
ResourceFileProcessor instance using the properties of the instance. |
void |
executeTask()
Calls the
processResourceFiles method if resource processing is enabled. |
String |
getResourceBundleDefaultLanguage()
Gets the language of the default language properties file of generated resource bundle resource files.
|
Class<? extends ResourceFileProcessor> |
getResourceFileProcessorClass()
Gets the class of the
ResourceFileProcessor backing the task. |
boolean |
isResourceProcessingEnabled()
Gets a flag indicating the processing of resources is enabled.
|
ResourceFileProcessor |
newResourceFileProcessor()
Creates a new
ResourceFileProcessor instance setup using the properties of the instance. |
void |
processResourceFiles()
Processes resource files.
|
void |
setResourceBundleDefaultLanguage(String value)
Sets the language of the default language properties file of generated resource bundle resource files.
|
void |
setResourceFileProcessorClass(Class<? extends ResourceFileProcessor> value)
Sets the class of the
ResourceFileProcessor backing the task. |
void |
setResourceProcessingEnabled(boolean value)
Sets the flag indicating the processing of resources 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, 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, 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, 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 ResourceFileProcessorTask()
ResourceFileProcessorTask
instance.public final boolean isResourceProcessingEnabled()
true
, if processing of resources is enabled; false
, else.setResourceProcessingEnabled(boolean)
public final void setResourceProcessingEnabled(boolean value)
value
- true
, to enable processing of resources; false
, to disable processing of resources.isResourceProcessingEnabled()
public final String getResourceBundleDefaultLanguage()
null
.setResourceBundleDefaultLanguage(java.lang.String)
public final void setResourceBundleDefaultLanguage(String value)
value
- The new language of the default language properties file of generated resource bundle resource files
or null
.getResourceBundleDefaultLanguage()
public final Class<? extends ResourceFileProcessor> getResourceFileProcessorClass()
ResourceFileProcessor
backing the task.ResourceFileProcessor
backing the task.setResourceFileProcessorClass(java.lang.Class)
public final void setResourceFileProcessorClass(Class<? extends ResourceFileProcessor> value)
ResourceFileProcessor
backing the task.value
- The new class of the ResourceFileProcessor
backing the task or null
.getResourceFileProcessorClass()
public ResourceFileProcessor newResourceFileProcessor() throws org.apache.tools.ant.BuildException
ResourceFileProcessor
instance setup using the properties of the instance.ResourceFileProcessor
instance.org.apache.tools.ant.BuildException
- if creating a new ResourceFileProcessor
instance fails.getResourceFileProcessorClass()
,
configureResourceFileProcessor(org.jomc.tools.ResourceFileProcessor)
public void configureResourceFileProcessor(ResourceFileProcessor resourceFileProcessor) throws org.apache.tools.ant.BuildException
ResourceFileProcessor
instance using the properties of the instance.resourceFileProcessor
- The resource file processor to configure.NullPointerException
- if resourceFileProcessor
is null
.org.apache.tools.ant.BuildException
- if configuring resourceFileProcessor
fails.JomcToolTask.configureJomcTool(org.jomc.tools.JomcTool)
public final void executeTask() throws org.apache.tools.ant.BuildException
processResourceFiles
method if resource processing is enabled.executeTask
in class JomcTask
org.apache.tools.ant.BuildException
- if processing resource files fails.processResourceFiles()
public void processResourceFiles() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
- if processing resource files fails.executeTask()
public ResourceFileProcessorTask clone()
clone
in class JomcToolTask
Copyright © 2005–2016 The JOMC Project. All rights reserved.