How do I measure the time it taks for the task "java" to complete?

Erik Hatcher

You could write a BuildListener to observe the tasks being executed, and diff the time between taskStarted and taskFinished. Just write a class that implements org.apache.tools.ant.BuildListener and from the commandline:

  ant -listener com.ant.YourListener
You can use 'instanceof' to determine the task that is being run.
0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.