Package org.apache.tools.ant.listener
Class ProfileLogger
java.lang.Object
org.apache.tools.ant.DefaultLogger
org.apache.tools.ant.listener.ProfileLogger
- All Implemented Interfaces:
java.util.EventListener,BuildListener,BuildLogger
public class ProfileLogger extends DefaultLogger
This is a special logger that is designed to profile builds.
- Since:
- Ant1.8
-
Field Summary
Fields inherited from class org.apache.tools.ant.DefaultLogger
emacsMode, err, LEFT_COLUMN_SIZE, lSep, msgOutputLevel, out -
Constructor Summary
Constructors Constructor Description ProfileLogger() -
Method Summary
Modifier and Type Method Description voidtargetFinished(BuildEvent event)Logs a message to say that the target has finished.voidtargetStarted(BuildEvent event)Logs a message to say that the target has started.voidtaskFinished(BuildEvent event)Logs a message to say that the task has finished.voidtaskStarted(BuildEvent event)Logs a message to say that the task has started.Methods inherited from class org.apache.tools.ant.DefaultLogger
buildFinished, buildStarted, extractProjectName, formatTime, getBuildFailedMessage, getBuildSuccessfulMessage, getTimestamp, log, messageLogged, printMessage, setEmacsMode, setErrorPrintStream, setMessageOutputLevel, setOutputPrintStreamMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ProfileLogger
public ProfileLogger()
-
-
Method Details
-
targetStarted
Logs a message to say that the target has started.- Specified by:
targetStartedin interfaceBuildListener- Overrides:
targetStartedin classDefaultLogger- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getTarget()
-
targetFinished
Logs a message to say that the target has finished.- Specified by:
targetFinishedin interfaceBuildListener- Overrides:
targetFinishedin classDefaultLogger- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getException()
-
taskStarted
Logs a message to say that the task has started.- Specified by:
taskStartedin interfaceBuildListener- Overrides:
taskStartedin classDefaultLogger- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getTask()
-
taskFinished
Logs a message to say that the task has finished.- Specified by:
taskFinishedin interfaceBuildListener- Overrides:
taskFinishedin classDefaultLogger- Parameters:
event- An event with any relevant extra information. Must not benull.- See Also:
BuildEvent.getException()
-