| java.lang.Object org.apache.ivy.plugins.trigger.AbstractTrigger org.apache.ivy.plugins.trigger.LogTrigger
LogTrigger | public class LogTrigger extends AbstractTrigger (Code) | | A trigger performing logging.
The implementation is widely inspired by Ant Echo task.
|
Method Summary | |
protected void | log(String message) Logs the given message. | public void | progress(IvyEvent event) | 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(String file) File to write to. | public void | setMessage(String msg) Message to write. |
log | protected void log(String message)(Code) | | Logs the given message.
Parameters: message - the message to log |
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. |
setFile | public void setFile(String file)(Code) | | File to write to.
Parameters: file - the file to write to, if not set, echo tostandard Ivy logging |
setMessage | public void setMessage(String msg)(Code) | | Message to write.
Parameters: msg - Sets the value for the message variable. |
|
|