| Modifier and Type | Class and Description |
|---|---|
| public static class | Echo.EchoLevel
The enumerated values for the level attribute. |
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | |
| private String | encoding
encoding; set to null or empty means 'default' |
| protected File | |
| private boolean | |
| protected int | |
| protected String | |
| private Resource |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | setAppend(boolean
if true, append to existing file, default
is false. append)If true, append to existing file. |
| public void | setEncoding(String
the character encoding to use. encoding)Declare the encoding to use when outputting to a file; Use "" for the platform's default encoding. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void |
| append | back to summary |
|---|---|
| protected boolean append | |
| encoding | back to summary |
|---|---|
| private String encoding encoding; set to null or empty means 'default' | |
| file | back to summary |
|---|---|
| protected File file | |
| force | back to summary |
|---|---|
| private boolean force | |
| logLevel | back to summary |
|---|---|
| protected int logLevel | |
| message | back to summary |
|---|---|
| protected String message | |
| output | back to summary |
|---|---|
| private Resource output | |
| Echo | back to summary |
|---|---|
| public Echo() | |
| addText | back to summary |
|---|---|
| public void addText(String msg) Set a multiline message.
| |
| execute | back to summary |
|---|---|
| public void execute() throws BuildException Overrides org. Does the work.
| |
| setAppend | back to summary |
|---|---|
| public void setAppend(boolean append) If true, append to existing file.
| |
| setEncoding | back to summary |
|---|---|
| public void setEncoding(String encoding) Declare the encoding to use when outputting to a file; Use "" for the platform's default encoding.
| |
| setFile | back to summary |
|---|---|
| public void setFile(File file) File to write to.
| |
| setForce | back to summary |
|---|---|
| public void setForce(boolean f) Whether read-only destinations will be overwritten. Defaults to false
| |
| setLevel | back to summary |
|---|---|
| public void setLevel(Echo. Set the logging level. Level should be one of
The default is "warning" to ensure that messages are displayed by default when using the -quiet command line option. | |
| setMessage | back to summary |
|---|---|
| public void setMessage(String msg) Message to write.
| |
| setOutput | back to summary |
|---|---|
| public void setOutput(Resource output) Resource to write to.
| |
| Access | Constructor and Description |
|---|---|
| public |
| EchoLevel | back to summary |
|---|---|
| public EchoLevel() | |