On Tue, 1 Apr 2003 01:08 am, [EMAIL PROTECTED] wrote:
> bodewig     2003/03/31 07:08:37
>
>   Modified:    src/main/org/apache/tools/ant Location.java
>   Log:
>   unURIfy build-file name if necessary.
>
>    /**
>   @@ -118,7 +119,11 @@
>         * @param columnNumber Column number within the line.
>         */
>        public Location(String fileName, int lineNumber, int columnNumber) {
>   -        this.fileName = fileName;
>   +        if (fileName != null && fileName.startsWith("file:")) {
>   +            this.fileName = FileUtils.newFileUtils().fromURI(fileName);
>   +        } else {
>   +            this.fileName = fileName;
>   +        }
>            this.lineNumber = lineNumber;
>            this.columnNumber = columnNumber;
>        }
>

I was about to commit a slightly different fix for this. Rather than change 
filename on the way in, I changed it on the way out in the toString method. 
Just wondering if the names within the location object should be consistent 
(i.e. always URLs). Currently moot, I guess.

Conor

Reply via email to