org.apache.ivy.ant

Class AntMessageLogger

public class AntMessageLogger extends AbstractMessageLogger

Implementation of the simple message facility for ant.
Constructor Summary
protected AntMessageLogger(ProjectComponent antProjectComponent)
Constructs a new AntMEssageImpl instance.
Method Summary
voiddoEndProgress(String msg)
voiddoProgress()
voidlog(String msg, int level)
voidrawlog(String msg, int level)
static voidregister(Task task, Ivy ivy)
Creates and register an AntMessageLogger for the given Task, with the given Ivy instance.
StringtoString()

Constructor Detail

AntMessageLogger

protected AntMessageLogger(ProjectComponent antProjectComponent)
Constructs a new AntMEssageImpl instance.

Parameters: antProjectComponent the ant project component this message implementation should use for logging. Must not be null.

Method Detail

doEndProgress

public void doEndProgress(String msg)

doProgress

public void doProgress()

log

public void log(String msg, int level)

rawlog

public void rawlog(String msg, int level)

register

public static void register(Task task, Ivy ivy)
Creates and register an AntMessageLogger for the given Task, with the given Ivy instance.

The created instance will automatically be unregistered from the Ivy instance when the task finishes.

Parameters: task the task the logger should use for logging ivy the ivy instance on which the logger should be registered

toString

public String toString()