|
|
@@ -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(); |
|
|
|
} |
|
|
|
|
|
|
|
} |