|
terp - the ANT Tasks v1.2.229 |
|||||||||
| 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.Fail
public class Fail
A fail replacement that simplifies unit-testing of ANT tasks by supporting terp if and unless conditions .
| 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 | |
|---|---|
Fail()
|
|
Fail(org.apache.tools.ant.Project p)
|
|
| Method Summary | |
|---|---|
void |
execute()
|
void |
setMessage(java.lang.String message)
Set the message to display in the case of failure. |
void |
setMessageExpression(java.lang.String message)
Set an expression to be evaluated (not expanded) and used as the failure message. |
| 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 |
| Constructor Detail |
|---|
public Fail(org.apache.tools.ant.Project p)
public Fail()
| Method Detail |
|---|
public void setMessage(java.lang.String message)
message - the failure message.the attribute value is interpreted as
a terp expression to be evaluated rather than a template string to be expanded.public void setMessageExpression(java.lang.String message)
message - the terp expression.the attribute value is interpreted as
a template string to be expanded rather than a terp expression to be evaluated.
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.2.229 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||