peterreilly 2003/07/17 02:25:13 Modified: src/main/org/apache/tools/ant Location.java Log: Expose filename and linecount of location Revision Changes Path 1.15 +17 -0 ant/src/main/org/apache/tools/ant/Location.java Index: Location.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/Location.java,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- Location.java 6 Jul 2003 09:57:34 -0000 1.14 +++ Location.java 17 Jul 2003 09:25:13 -0000 1.15 @@ -131,6 +131,22 @@ } /** + * @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 * empty string is returned. @@ -156,4 +172,5 @@ return buf.toString(); } + }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]