public abstract class StringTemplateBasedTask
extends org.apache.tools.ant.Task
Modifier and Type | Field and Description |
---|---|
protected static org.apache.log4j.Logger |
log |
Constructor and Description |
---|
StringTemplateBasedTask() |
Modifier and Type | Method and Description |
---|---|
protected void |
execute(String taskDescription) |
protected abstract String |
getDefaultTemplate() |
protected File |
getDestinationDirectory(String destination) |
protected PrintWriter |
getDestinationPrintWriter(File destDir,
String fileName) |
protected PrintWriter |
getDestinationPrintWriter(String fileName) |
protected File |
getFile(String fileName,
String description) |
protected void |
getFiniteStateMachineModels(List<StateMachineWrapper> stateMachines) |
protected String |
getPackageName() |
protected org.stringtemplate.v4.STGroup |
getStringTemplateGroup() |
protected void |
logMessages(Collection<com.opencloud.sce.fsmtool.fsm.BuilderMessage> messages) |
void |
setDestDir(String destDir) |
void |
setPackage(String packageName) |
void |
setTemplate(String pathToTemplate) |
bindToOwner, execute, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setTemplate(String pathToTemplate)
public void setDestDir(String destDir)
public void setPackage(String packageName)
protected final void execute(String taskDescription) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected final org.stringtemplate.v4.STGroup getStringTemplateGroup() throws FileNotFoundException
FileNotFoundException
protected final File getDestinationDirectory(String destination) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected final File getFile(String fileName, String description) throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
protected abstract String getDefaultTemplate()
protected final String getPackageName()
protected final void getFiniteStateMachineModels(List<StateMachineWrapper> stateMachines) throws org.antlr.runtime.RecognitionException, ParseException
org.antlr.runtime.RecognitionException
ParseException
protected void logMessages(Collection<com.opencloud.sce.fsmtool.fsm.BuilderMessage> messages)
protected final PrintWriter getDestinationPrintWriter(String fileName) throws IOException
IOException
protected final PrintWriter getDestinationPrintWriter(File destDir, String fileName) throws IOException
IOException