1 | public class RExecWrite extends RExecSubTask {↵ | | 1 | public class TelnetWrite extends TelnetSubTask {↵
|
2 | private boolean echoString = true;↵ | | 2 | private boolean echoString = true;↵
|
3 | /**↵ | | 3 | /**↵
|
4 | * Execute the write exec task.↵ | | 4 | * Execute the write task.↵
|
5 | * @param rexec the task to use↵ | | 5 | * @param telnet the task to use↵
|
6 | * @throws BuildException on error↵ | | 6 | * @throws BuildException on error↵
|
7 | */↵ | | 7 | */↵
|
8 | public void execute(AntRExecClient rexec)↵ | | 8 | public void execute(AntTelnetClient telnet)↵
|
9 | throws BuildException {↵ | | 9 | throws BuildException {↵
|
10 | rexec.sendString(taskString, echoString);↵ | | 10 | telnet.sendString(taskString, echoString);↵
|
11 | }↵ | | 11 | }↵
|
|
12 | /**↵ | | 12 | /**↵
|
13 | * Whether or not the message should be echoed to the log.↵ | | 13 | * Whether or not the message should be echoed to the log.↵
|
14 | * Defaults to <code>true</code>.↵ | | 14 | * Defaults to <code>true</code>.↵
|
15 | * @param b a <code>boolean</code> value↵ | | 15 | * @param b a <code>boolean</code> value↵
|
16 | */↵ | | 16 | */↵
|
17 | public void setEcho(boolean b) {↵ | | 17 | public void setEcho(boolean b) {↵
|
18 | echoString = b | | 18 | echoString = b
|