|
||||||||||
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.JomcToolTask
org.jomc.ant.ResourceFileProcessorTask
public class ResourceFileProcessorTask
Base class for executing resource file processor based tasks.
processResourceFiles()
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 | |
---|---|
ResourceFileProcessorTask()
Creates a new ResourceFileProcessorTask instance. |
Method Summary | |
---|---|
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. |
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 ResourceFileProcessorTask()
ResourceFileProcessorTask
instance.
Method Detail |
---|
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
|
||||||||||
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. |