incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1086634 - /sling/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/JcrInstaller.java
Date Tue, 29 Mar 2011 15:54:08 GMT
Author: cziegeler
Date: Tue Mar 29 15:54:08 2011
New Revision: 1086634

URL: http://svn.apache.org/viewvc?rev=1086634&view=rev
Log:
SLING-1971 : Persist configuration changes not made through the installer

Modified:
    sling/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/JcrInstaller.java

Modified: sling/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/JcrInstaller.java
URL: http://svn.apache.org/viewvc/sling/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/JcrInstaller.java?rev=1086634&r1=1086633&r2=1086634&view=diff
==============================================================================
--- sling/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/JcrInstaller.java
(original)
+++ sling/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/JcrInstaller.java
Tue Mar 29 15:54:08 2011
@@ -656,6 +656,8 @@ public class JcrInstaller implements Eve
 
             dataNode.setProperty("jcr:data", new ByteArrayInputStream(baos.toByteArray()));
             dataNode.setProperty("jcr:lastModified", Calendar.getInstance());
+            dataNode.setProperty("jcr:encoding", "UTF-8");
+            dataNode.setProperty("jcr:mimeType", "text/plain");
             session.save();
 
             final UpdateResult result = new UpdateResult(JcrInstaller.URL_SCHEME + ':' +
path);



Mime
View raw message