org.apache.tools.ant.taskdefs
Class Echo
java.lang.Object
|
+--org.apache.tools.ant.ProjectComponent
|
+--org.apache.tools.ant.Task
|
+--org.apache.tools.ant.taskdefs.Echo
- public class Echo
- extends Task
Echo
- Author:
- costin@dnt.ro
Constructor Summary |
Echo()
|
Method Summary |
void |
addText(java.lang.String msg)
Set a multiline message. |
void |
execute()
Does the work. |
void |
setAppend(boolean append)
Shall we append to an existing file? |
void |
setFile(java.io.File file)
Sets the file attribute. |
void |
setLevel(Echo.EchoLevel echoLevel)
Set the logging level to one of
error
warning
info
verbose
debug
|
void |
setMessage(java.lang.String msg)
Sets the message variable. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
message
protected java.lang.String message
file
protected java.io.File file
append
protected boolean append
logLevel
protected int logLevel
Echo
public Echo()
execute
public void execute()
throws BuildException
- Does the work.
- Overrides:
execute
in class Task
- Throws:
BuildException
- if someting goes wrong with the build
setMessage
public void setMessage(java.lang.String msg)
- Sets the message variable.
- Parameters:
msg
- Sets the value for the message variable.
setFile
public void setFile(java.io.File file)
- Sets the file attribute.
setAppend
public void setAppend(boolean append)
- Shall we append to an existing file?
addText
public void addText(java.lang.String msg)
- Set a multiline message.
setLevel
public void setLevel(Echo.EchoLevel echoLevel)
- Set the logging level to one of
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.