forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rgard...@apache.org
Subject svn commit: r492329 - /forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/reader/FileReader.java
Date Wed, 03 Jan 2007 22:49:40 GMT
Author: rgardler
Date: Wed Jan  3 14:49:40 2007
New Revision: 492329

URL: http://svn.apache.org/viewvc?view=rev&rev=492329
Log:
Pass the sourceURL along in case we need it for further processing (i.e. guessing the doctype)

Modified:
    forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/reader/FileReader.java

Modified: forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/reader/FileReader.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/reader/FileReader.java?view=diff&rev=492329&r1=492328&r2=492329
==============================================================================
--- forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/reader/FileReader.java
(original)
+++ forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/reader/FileReader.java
Wed Jan  3 14:49:40 2007
@@ -49,7 +49,7 @@
 		try {
 			URL resolvedURL = sourceNode.resolveURL(matcher, requestURI);
 			final InputStream is = new FileInputStream(new File(resolvedURL.toURI()));
-			result = DocumentFactory.getSourceDocumentFor(requestURI, is);
+			result = DocumentFactory.getSourceDocumentFor(resolvedURL, requestURI, is);
 			if (result == null) {
 				log.debug("No source document exists at " + resolvedURL.toExternalForm());
 			} else {



Mime
View raw message