01: package task; 02: 03: import org.apache.tools.ant.Project; 04: import org.apache.tools.ant.Task; 05: 06: public class EchoLocation extends Task { 07: public void execute() { 08: log("Line: " + getLocation().getLineNumber(), Project.MSG_INFO); 09: } 10: }