| org.apache.tools.ant.Task org.apache.tools.ant.taskdefs.Echo
Echo | public class Echo extends Task (Code) | | Writes a message to the Ant logging facilities.
since: Ant 1.1 |
Inner Class :public static class EchoLevel extends LogLevel | |
Method Summary | |
public void | addText(String msg) Set a multiline message. | public void | execute() Does the work. | public void | setAppend(boolean append) If true, append to existing file. | public void | setEncoding(String encoding) Declare the encoding to use when outputting to a file;
Use "" for the platform's default encoding. | public void | setFile(File file) File to write to. | public void | setLevel(EchoLevel echoLevel) Set the logging level. | public void | setMessage(String msg) Message to write. |
append | protected boolean append(Code) | | |
logLevel | protected int logLevel(Code) | | |
addText | public void addText(String msg)(Code) | | Set a multiline message.
Parameters: msg - the CDATA text to append to the output text |
setAppend | public void setAppend(boolean append)(Code) | | If true, append to existing file.
Parameters: append - if true, append to existing file, defaultis false. |
setEncoding | public void setEncoding(String encoding)(Code) | | Declare the encoding to use when outputting to a file;
Use "" for the platform's default encoding.
Parameters: encoding - the character encoding to use. since: 1.7 |
setFile | public void setFile(File file)(Code) | | File to write to.
Parameters: file - the file to write to, if not set, echo tostandard output |
setLevel | public void setLevel(EchoLevel echoLevel)(Code) | | Set the logging level. Level should be one of
- error
- warning
- info
- verbose
- debug
The default is "warning" to ensure that messages are
displayed by default when using the -quiet command line option.
Parameters: echoLevel - the logging level |
setMessage | public void setMessage(String msg)(Code) | | Message to write.
Parameters: msg - Sets the value for the message variable. |
|
|