|
terp - the ANT Tasks v1.3.304 |
|||||||||
| 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
com.codemesh.terp.ant.TerpAwareTask
com.codemesh.terp.ant.codegen.CodeGeneratorImpl
public class CodeGeneratorImpl
The default implementation of the code generator task.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.codemesh.terp.ant.TerpAware |
|---|
TerpAware.Delegate |
| 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 | |
|---|---|
CodeGeneratorImpl()
|
|
| Method Summary | |
|---|---|
CommandOption |
createCommand()
Add a code generator command to the invocation. |
ModelFileOption |
createModelFile()
Add a code generator model file to the invocation. |
ModelProperty |
createModelProperty()
Add a code generator model property to the invocation. |
void |
execute()
|
Version |
getVersion()
Returns the code generator version. |
void |
setSpawn(boolean bSpawn)
Tells the code generator task to execute as a separate process. |
void |
setWarningsAsErrors(boolean bWE)
Tells the code generator task to treat warnings as errors. |
| Methods inherited from class com.codemesh.terp.ant.TerpAwareTask |
|---|
getContext, getIf, getUnless, satisfiesConditions, setContext, setIf, setProject, setUnless |
| 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 |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.codemesh.terp.ant.TerpAware |
|---|
getIf, getUnless, satisfiesConditions, setIf, setUnless |
| Methods inherited from interface com.codemesh.terp.ant.TerpContextHolder |
|---|
getContext, setContext |
| Constructor Detail |
|---|
public CodeGeneratorImpl()
| Method Detail |
|---|
public Version getVersion()
CodeGenerator
getVersion in interface CodeGeneratorpublic void setSpawn(boolean bSpawn)
CodeGenerator
setSpawn in interface CodeGeneratorbSpawn - true to spawn a code generator process, false to execute in-process.public void setWarningsAsErrors(boolean bWE)
CodeGenerator
setWarningsAsErrors in interface CodeGeneratorbWE - true to treat code generator warnings as errors.public CommandOption createCommand()
CodeGenerator
createCommand in interface CodeGeneratorpublic ModelProperty createModelProperty()
CodeGenerator
createModelProperty in interface CodeGeneratorpublic ModelFileOption createModelFile()
CodeGenerator
createModelFile in interface CodeGenerator
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||