The only real change apart from refactoring is imho:
Jorg Heymans wrote:
--- 2.2.1/org/apache/excalibur/source/impl/FileSource.java
2007-05-03 20:08:08.000000000 +0200
+++ 2.2.2/org/apache/excalibur/source/impl/FileSource.java
2007-05-03 20:08:22.000000000 +0200
@@ -80,7 +80,7 @@
/**
* Builds a FileSource, given an URI scheme and a File.
- *
+ *
* @param scheme
* @param file
* @throws SourceException
@@ -98,6 +98,13 @@
try
{
uri = file.toURL().toExternalForm();
+ // toExternalForm() is buggy, see e.g. http://
bugs.sun.com/bugdatabase/view_bug.do?bug_id=4924415
+ // therefore we check if file: is followed by just one
slash
+ // TODO when we move to JDK 1.4+, we should use
file.toURI().toASCIIString() instead.
+ if ( uri.length() > 6 && uri.startsWith("file:/") &&
uri.charAt(6) != '/' )
+ {
+ uri = "file://" + uri.substring(6);
+ }
}
catch (MalformedURLException mue)
{
--
Carsten Ziegeler