Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 76248 invoked by uid 500); 26 Apr 2000 21:21:06 -0000 Delivered-To: apmail-jakarta-ant-cvs@apache.org Received: (qmail 76242 invoked by uid 1064); 26 Apr 2000 21:21:04 -0000 Date: 26 Apr 2000 21:21:04 -0000 Message-ID: <20000426212104.76236.qmail@locus.apache.org> From: rubys@locus.apache.org To: jakarta-ant-cvs@apache.org Subject: cvs commit: jakarta-ant/src/main/org/apache/tools/ant Location.java rubys 00/04/26 14:21:04 Modified: . build.xml Added: src/main/org/apache/tools/ant Location.java Log: Cleanup things missed with JAXP/SAX 1.0 fixes Revision Changes Path 1.18 +6 -5 jakarta-ant/build.xml Index: build.xml =================================================================== RCS file: /home/cvs/jakarta-ant/build.xml,v retrieving revision 1.17 retrieving revision 1.18 diff -u -r1.17 -r1.18 --- build.xml 2000/04/26 19:09:15 1.17 +++ build.xml 2000/04/26 21:21:03 1.18 @@ -16,10 +16,10 @@ - - - - + + + + @@ -56,7 +56,7 @@ destdir="${build.classes}" classpath="${classpath}" debug="on" - deprecation="on" + deprecation="off" optimize="on" > @@ -72,6 +72,7 @@ + . */ package org.apache.tools.ant; /** * Stores the file name and line number in a file. */ public class Location { private String fileName; private int lineNumber; private int columnNumber; public static final Location UNKNOWN_LOCATION = new Location(); /** * Creates an "unknown" location. */ private Location() { this(null, 0, 0); } /** * Creates a location consisting of a file name but no line number. */ public Location(String fileName) { this(fileName, 0, 0); } /** * Creates a location consisting of a file name and line number. */ public Location(String fileName, int lineNumber, int columnNumber) { this.fileName = fileName; this.lineNumber = lineNumber; this.columnNumber = columnNumber; } /** * Returns the file name, line number and a trailing space. An error * message can be appended easily. For unknown locations, returns * an empty string. */ public String toString() { StringBuffer buf = new StringBuffer(); if (fileName != null) { buf.append(fileName); if (lineNumber != 0) { buf.append(":"); buf.append(lineNumber); } buf.append(": "); } return buf.toString(); } }