|
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.devpartner.DevPartnerTool
public abstract class DevPartnerTool
The base class for all DevPartner tools.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.codemesh.terp.ant.TerpAware |
|---|
TerpAware.Delegate |
| Field Summary | |
|---|---|
protected TerpAware.Delegate |
aware
|
protected TerpContext |
ctx
|
protected static TerpEvaluator |
EVAL
|
protected java.lang.String |
failOnError
|
protected ToolOptionSet<DevPartnerTool> |
options
|
static ToFile |
TO_FILE
|
static ToInteger |
TO_INT
|
protected ProcessExecutor |
tool
|
protected java.lang.String |
toolSpec
|
| 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 | |
|---|---|
DevPartnerTool()
|
|
| Method Summary | |
|---|---|
void |
addOption(ToolOption<DevPartnerTool> option)
Add a tool option to the tool invocation. |
TerpContext |
getContext()
Returns the terp context in which the tool is executing. |
java.lang.String |
getIf()
Returns the condition that must be satidifed to execute the implementing task. |
ToolOptionSet<DevPartnerTool> |
getOptions()
Returns an object that keeps track of all configured tool options. |
ProcessExecutor |
getTool()
Returns the configured executor. |
java.lang.String |
getUnless()
Returns the condition that must not be satidifed to execute the implementing task. |
boolean |
isFailOnError()
Returns true if the build should be failed if the tool returns an error. |
boolean |
satisfiesConditions()
Returns true if both conditions are met. |
void |
setContext(TerpContext ctx)
Sets the context maintained by this instance. |
void |
setFailOnError(java.lang.String failOnError)
Specifies whether to fail the build if the tool returns an error. |
void |
setIf(java.lang.String condition)
Sets a condition that must be satisfied to execute the implementing task. |
void |
setProject(org.apache.tools.ant.Project p)
|
void |
setTool(java.lang.String tool)
|
void |
setUnless(java.lang.String condition)
Sets a condition that must not be satisfied to execute the implementing task. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
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 |
| 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.devpartner.Tool |
|---|
getCode, getVersion |
| Field Detail |
|---|
public static final ToInteger TO_INT
public static final ToFile TO_FILE
protected static final TerpEvaluator EVAL
protected java.lang.String failOnError
protected TerpAware.Delegate aware
protected TerpContext ctx
protected ProcessExecutor tool
protected java.lang.String toolSpec
protected ToolOptionSet<DevPartnerTool> options
| Constructor Detail |
|---|
public DevPartnerTool()
| Method Detail |
|---|
public void setFailOnError(java.lang.String failOnError)
failOnError - a string that evaluates to a boolean value.public boolean isFailOnError()
public void addOption(ToolOption<DevPartnerTool> option)
Tool
addOption in interface Tool<DevPartnerTool>option - the option to add.public ToolOptionSet<DevPartnerTool> getOptions()
getOptions in interface Tool<DevPartnerTool>public java.lang.String getIf()
getIf in interface TerpAwarepublic void setIf(java.lang.String condition)
setIf in interface TerpAwarecondition - a terp expression that must evaluate to a boolean value.public java.lang.String getUnless()
getUnless in interface TerpAwarepublic void setUnless(java.lang.String condition)
setUnless in interface TerpAwarecondition - a terp expression that must evaluate to a boolean value.public boolean satisfiesConditions()
satisfiesConditions in interface TerpAwarepublic void setProject(org.apache.tools.ant.Project p)
setProject in class org.apache.tools.ant.ProjectComponentpublic void setContext(TerpContext ctx)
setContext in interface TerpContextHolderctx - the execution context.public TerpContext getContext()
getContext in interface Tool<DevPartnerTool>getContext in interface TerpContextHolderpublic void setTool(java.lang.String tool)
public ProcessExecutor getTool()
|
terp - the ANT Tasks v1.3.304 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||