|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.ivy.plugins.trigger.AbstractTrigger
org.apache.ivy.plugins.trigger.LogTrigger
public class LogTrigger
A trigger performing logging.
The implementation is widely inspired by Ant Echo task.
| Constructor Summary | |
|---|---|
LogTrigger()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.apache.ivy.plugins.trigger.AbstractTrigger |
|---|
getEvent, getEventFilter, getFilter, getMatcher, setEvent, setFilter, setMatcher |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LogTrigger()
| Method Detail |
|---|
public 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.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||