Class AntMessageLogger
java.lang.Object
org.apache.ivy.util.AbstractMessageLogger
org.apache.ivy.ant.AntMessageLogger
- All Implemented Interfaces:
MessageLogger
Implementation of the simple message facility for ant.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAntMessageLogger(org.apache.tools.ant.ProjectComponent task) Constructs a new AntMessageImpl instance. -
Method Summary
Modifier and TypeMethodDescriptionvoiddoEndProgress(String msg) Indicates the end of a long running taskvoidIndicates a progression for a long running taskvoidLogs a message at the given level.voidSame asMessageLogger.log(String, int), but without adding any contextual information to the message.static voidtoString()Methods inherited from class AbstractMessageLogger
clearProblems, debug, deprecated, endProgress, endProgress, error, getErrors, getProblems, getWarns, info, isShowProgress, progress, rawinfo, setShowProgress, sumupProblems, verbose, warn
-
Constructor Details
-
AntMessageLogger
protected AntMessageLogger(org.apache.tools.ant.ProjectComponent task) Constructs a new AntMessageImpl instance.- Parameters:
task- the ant project component this message implementation should use for logging. Must not benull.
-
-
Method Details
-
register
Creates and register anAntMessageLoggerfor the givenTask, with the givenIvyinstance.The created instance will automatically be unregistered from the Ivy instance when the task finishes.
- Parameters:
task- the task the logger should use for loggingivy- the ivy instance on which the logger should be registered
-
log
Description copied from interface:MessageLoggerLogs a message at the given level.levelconstants are defined in theMessageclass.- Parameters:
msg- the message to loglevel- the level at which the message should be logged.- See Also:
-
rawlog
Description copied from interface:MessageLoggerSame asMessageLogger.log(String, int), but without adding any contextual information to the message.- Parameters:
msg- the message to loglevel- the level at which the message should be logged.
-
doProgress
public void doProgress()Description copied from class:AbstractMessageLoggerIndicates a progression for a long running task- Specified by:
doProgressin classAbstractMessageLogger
-
doEndProgress
Description copied from class:AbstractMessageLoggerIndicates the end of a long running task- Specified by:
doEndProgressin classAbstractMessageLogger- Parameters:
msg- the message associated with long running task end.
-
toString
-