java.util.EventListener
, org.apache.tools.ant.BuildListener
public class AntPerformanceListener
extends java.lang.Object
implements org.apache.tools.ant.BuildListener
Developed for use with Antelope, migrated to ant-contrib Oct 2003.
Modifier and Type | Class | Description |
---|---|---|
class |
AntPerformanceListener.StopWatch |
A stopwatch, useful for 'quick and dirty' performance testing.
|
class |
AntPerformanceListener.StopWatchComparator |
Compares the total times for two StopWatches.
|
Constructor | Description |
---|---|
AntPerformanceListener() |
Modifier and Type | Method | Description |
---|---|---|
void |
buildFinished(org.apache.tools.ant.BuildEvent be) |
Sorts and prints the results.
|
void |
buildStarted(org.apache.tools.ant.BuildEvent be) |
Starts a 'running total' stopwatch.
|
static void |
main(java.lang.String[] args) |
|
void |
messageLogged(org.apache.tools.ant.BuildEvent be) |
no-op
|
void |
targetFinished(org.apache.tools.ant.BuildEvent be) |
Stop timing the given target.
|
void |
targetStarted(org.apache.tools.ant.BuildEvent be) |
Start timing the given target.
|
void |
taskFinished(org.apache.tools.ant.BuildEvent be) |
Stop timing the given task.
|
void |
taskStarted(org.apache.tools.ant.BuildEvent be) |
Start timing the given task.
|
public void buildStarted(org.apache.tools.ant.BuildEvent be)
buildStarted
in interface org.apache.tools.ant.BuildListener
public void buildFinished(org.apache.tools.ant.BuildEvent be)
buildFinished
in interface org.apache.tools.ant.BuildListener
public void targetStarted(org.apache.tools.ant.BuildEvent be)
targetStarted
in interface org.apache.tools.ant.BuildListener
public void targetFinished(org.apache.tools.ant.BuildEvent be)
targetFinished
in interface org.apache.tools.ant.BuildListener
public void taskStarted(org.apache.tools.ant.BuildEvent be)
taskStarted
in interface org.apache.tools.ant.BuildListener
public void taskFinished(org.apache.tools.ant.BuildEvent be)
taskFinished
in interface org.apache.tools.ant.BuildListener
public void messageLogged(org.apache.tools.ant.BuildEvent be)
messageLogged
in interface org.apache.tools.ant.BuildListener
public static void main(java.lang.String[] args)