From b9f19825893da8510c37ebe6ca9e6a942bf55abf Mon Sep 17 00:00:00 2001 From: Kevin Jackson Date: Fri, 8 Dec 2006 10:23:19 +0000 Subject: [PATCH] -first stab at converting Location test to antunit git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@483907 13f79535-47bb-0310-9956-ffa450edef68 --- src/tests/antunit/core/location/location.xml | 77 +++++++++++++++++++ .../core/location/src/task/EchoLocation.java | 10 +++ 2 files changed, 87 insertions(+) create mode 100644 src/tests/antunit/core/location/location.xml create mode 100644 src/tests/antunit/core/location/src/task/EchoLocation.java diff --git a/src/tests/antunit/core/location/location.xml b/src/tests/antunit/core/location/location.xml new file mode 100644 index 000000000..5a9488088 --- /dev/null +++ b/src/tests/antunit/core/location/location.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Hello + + + + + + + + + + + + + Hello + + + + + + Hello + + + + + \ No newline at end of file diff --git a/src/tests/antunit/core/location/src/task/EchoLocation.java b/src/tests/antunit/core/location/src/task/EchoLocation.java new file mode 100644 index 000000000..9004f8a51 --- /dev/null +++ b/src/tests/antunit/core/location/src/task/EchoLocation.java @@ -0,0 +1,10 @@ +package task; + +import org.apache.tools.ant.Project; +import org.apache.tools.ant.Task; + +public class EchoLocation extends Task { + public void execute() { + log("Line: " + getLocation().getLineNumber(), Project.MSG_INFO); + } +} \ No newline at end of file