sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1143442 - /sling/trunk/installer/providers/jcr/src/main/java/org/apache/sling/installer/provider/jcr/impl/JcrInstaller.java
Date Wed, 06 Jul 2011 14:41:54 GMT
Author: cziegeler
Date: Wed Jul  6 14:41:53 2011
New Revision: 1143442

URL: http://svn.apache.org/viewvc?rev=1143442&view=rev
Log:
Don't use JCR 2.0 API

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=1143442&r1=1143441&r2=1143442&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
Wed Jul  6 14:41:53 2011
@@ -557,8 +557,8 @@ public class JcrInstaller implements Eve
         Session session = null;
         try {
             session = this.repository.loginAdministrative(null);
-            if ( session.nodeExists(path) ) {
-                session.getNode(path).remove();
+            if ( session.itemExists(path) ) {
+                session.getItem(path).remove();
                 session.save();
             }
         } catch (final RepositoryException re) {



Mime
View raw message