|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tools.ant.ProjectComponent org.apache.tools.ant.Task org.apache.james.mpt.ant.MailProtocolTestTask
public class MailProtocolTestTask
Task executes MPT scripts against a server running on a given port and host.
Nested Class Summary | |
---|---|
class |
MailProtocolTestTask.AddUser
Adds a user. |
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 | |
---|---|
MailProtocolTestTask()
|
Method Summary | |
---|---|
void |
add(org.apache.tools.ant.types.ResourceCollection resources)
|
MailProtocolTestTask.AddUser |
createAddUser()
|
void |
debug(char character)
|
void |
debug(java.lang.String message)
|
void |
execute()
|
java.lang.String |
getErrorProperty()
Gets the error property. |
java.lang.String |
getHost()
Gets the host (either name or number) against which this test will run. |
int |
getPort()
Gets the port against which this test will run. |
java.io.File |
getScript()
Gets the script to execute. |
java.lang.String |
getShabang()
Gets script shabang. |
boolean |
isQuiet()
Should progress output be suppressed? |
boolean |
isSkip()
Should the execution be skipped? |
void |
note(java.lang.String message)
|
void |
setErrorProperty(java.lang.String errorProperty)
Sets the error property. |
void |
setHost(java.lang.String host)
Sets the host (either name or number) against which this test will run. |
void |
setPort(int port)
Sets the port aginst which this test will run. |
void |
setQuiet(boolean quiet)
Sets whether progress output should be suppressed/ |
void |
setScript(java.io.File script)
Sets the script to execute. |
void |
setShabang(java.lang.String shabang)
Sets the script shabang. |
void |
setSkip(boolean skip)
Sets execution skipping. |
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, setProject |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MailProtocolTestTask()
Method Detail |
---|
public java.lang.String getErrorProperty()
public void setErrorProperty(java.lang.String errorProperty)
errorProperty
- name of the ant property to be set on error,
nul if the script should terminate on errorpublic boolean isQuiet()
public void setQuiet(boolean quiet)
quiet
- true if progress information should be suppressed,
false otherwisepublic boolean isSkip()
public void setSkip(boolean skip)
skip
- true to skip excutionpublic java.lang.String getHost()
public void setHost(java.lang.String host)
host
- not nullpublic int getPort()
public void setPort(int port)
port
- port numberpublic java.io.File getScript()
public void setScript(java.io.File script)
script
- not nullpublic java.lang.String getShabang()
public void setShabang(java.lang.String shabang)
shabang
- script shabang,
or null for no shabang.public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
public void add(org.apache.tools.ant.types.ResourceCollection resources)
public MailProtocolTestTask.AddUser createAddUser()
public void note(java.lang.String message)
note
in interface Monitor
public void debug(char character)
debug
in interface Monitor
public void debug(java.lang.String message)
debug
in interface Monitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |