|
||||||||||
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.SourceFileProcessorTask
public class SourceFileProcessorTask
Base class for executing source file processor based tasks.
processSourceFiles()
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 | |
---|---|
SourceFileProcessorTask()
Creates a new SourceFileProcessorTask instance. |
Method Summary | |
---|---|
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. |
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 SourceFileProcessorTask()
SourceFileProcessorTask
instance.
Method Detail |
---|
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 JomcTask
org.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 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. |