Ant Timer

Download

Additional Information

Five minute tutorial

The Ant Timer is a plug-in that prints out diagnostic messages when ant targets and tasks take longer than the configured amount of time. You can use it with any ant build. Here is some sample output when I use it on my renamer program.

Unfortunately, the Ant Timer depends on joda time. It didn’t have to but I like it better than using the built in classes for working with times. You’ll need to download the joda jar separately.

-Dtarget.timer=2 -Dtask.timer=1 -Dtimer.prefix="XXX"

You can configure the behavior through these properties. The first two are the timeouts in seconds for targets and tasks. If you leave them off they default to 10 seconds and 1 second respectively. The prefix makes it easy to find the output printed by the custom listener. If you leave it off it defaults to “!!!”