public class LogTrigger extends AbstractTrigger
The implementation is widely inspired by Ant Echo task.
| Constructor and Description |
|---|
LogTrigger() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
log(java.lang.String message)
Logs the given message.
|
void |
progress(IvyEvent event) |
void |
setAppend(boolean append)
If true, append to existing file.
|
void |
setEncoding(java.lang.String encoding)
Declare the encoding to use when outputting to a file; Use "" for the platform's default
encoding.
|
void |
setFile(java.io.File file)
File to write to.
|
void |
setMessage(java.lang.String msg)
Message to write.
|
getEvent, getEventFilter, getFilter, getMatcher, setEvent, setFilter, setMatcherpublic void progress(IvyEvent event)
protected void log(java.lang.String message)
message - the message to logpublic void setMessage(java.lang.String msg)
msg - Sets the value for the message variable.public void setFile(java.io.File file)
file - the file to write to, if not set, echo to standard Ivy loggingpublic void setAppend(boolean append)
append - if true, append to existing file, default is false.public void setEncoding(java.lang.String encoding)
encoding - the character encoding to use.