diff --git a/src/main/org/apache/tools/ant/Location.java b/src/main/org/apache/tools/ant/Location.java index 15100370d..89aa57f9e 100644 --- a/src/main/org/apache/tools/ant/Location.java +++ b/src/main/org/apache/tools/ant/Location.java @@ -130,6 +130,22 @@ public class Location implements Serializable { this.columnNumber = columnNumber; } + /** + * @return the filename portion of the location + * @since Ant 1.6 + */ + public String getFileName() { + return fileName; + } + + /** + * @return the line number + * @since Ant 1.6 + */ + public int getLineNumber() { + return lineNumber; + } + /** * Returns the file name, line number, a colon and a trailing space. * An error message can be appended easily. For unknown locations, an @@ -156,4 +172,5 @@ public class Location implements Serializable { return buf.toString(); } + }