jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ju...@apache.org
Subject svn commit: r292291 - /incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
Date Wed, 28 Sep 2005 20:42:55 GMT
Author: jukka
Date: Wed Sep 28 13:42:51 2005
New Revision: 292291

URL: http://svn.apache.org/viewcvs?rev=292291&view=rev
Log:
JCR-222: Use a file path instead of a File instance when creating a StreamResult!

Modified:
    incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java

Modified: incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java?rev=292291&r1=292290&r2=292291&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
(original)
+++ incubator/jackrabbit/trunk/src/java/org/apache/jackrabbit/core/config/RepositoryConfig.java
Wed Sep 28 13:42:51 2005
@@ -309,8 +309,10 @@
             TransformerFactory factory = TransformerFactory.newInstance();
             Transformer transformer = factory.newTransformer();
             transformer.setOutputProperty(OutputKeys.INDENT, "yes");
+            // NOTE: The StreamResult instance below is constructed using the
+            // file path instead of the file object. See JCR-222 for details.
             transformer.transform(
-                    new DOMSource(template), new StreamResult(xml));
+                    new DOMSource(template), new StreamResult(xml.getPath()));
         } catch (TransformerConfigurationException e) {
             throw new ConfigurationException(
                     "Cannot create a workspace configuration writer", e);



Mime
View raw message