How do I measure the time it taks for the task “java” to complete?
Location: http://www.jguru.com/faq/view.jsp?EID=726911 Created: Jan 19, 2002 Author: Erik Hatcher (http://www.jguru.com/guru/viewbio.jsp?EID=405274) Question originally posed by vijay mummaneni (http://www.jguru.com/guru/viewbio.jsp?EID=724900 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.