public class ReadLog
extends org.apache.tools.ant.Task
Constructor and Description |
---|
ReadLog() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
void |
setMinutes(int m)
Set the number of minutes to read, so, for example, 2 would read the most
recent 2 minutes from the log.
|
void |
setProperty(java.lang.String name)
Where to put the log contents.
|
void |
setUrl(java.net.URL url) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void setUrl(java.net.URL url)
public void setProperty(java.lang.String name)
name
- The new property valuepublic void setMinutes(int m)
m
- the number of minutes. Use -1 to read the complete log.
Default setting is to read 2 minutes.public void execute()
execute
in class org.apache.tools.ant.Task