org.apache.tools.ant.taskdefs.optional.net

Class TelnetTask.TelnetWrite

public class TelnetTask.TelnetWrite extends TelnetTask.TelnetSubTask

Sends text to the connected server
Method Summary
voidexecute(TelnetTask.AntTelnetClient telnet)
Execute the write task.
voidsetEcho(boolean b)
Whether or not the message should be echoed to the log.

Method Detail

execute

public void execute(TelnetTask.AntTelnetClient telnet)
Execute the write task.

Parameters: telnet the task to use

Throws: BuildException on error

setEcho

public void setEcho(boolean b)
Whether or not the message should be echoed to the log. Defaults to true.

Parameters: b a boolean value