incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romb...@apache.org
Subject svn commit: r1520310 - /sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrCommand.java
Date Thu, 05 Sep 2013 13:40:40 GMT
Author: rombert
Date: Thu Sep  5 13:40:40 2013
New Revision: 1520310

URL: http://svn.apache.org/r1520310
Log:
SLING-2989 - [Tooling] integrate with vlt once available

JcrCommand: use session.save()

Modified:
    sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrCommand.java

Modified: sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrCommand.java
URL: http://svn.apache.org/viewvc/sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrCommand.java?rev=1520310&r1=1520309&r2=1520310&view=diff
==============================================================================
--- sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrCommand.java
(original)
+++ sling/branches/tooling-ide-vlt/tooling/ide/impl-vlt/src/org/apache/sling/ide/impl/vlt/JcrCommand.java
Thu Sep  5 13:40:40 2013
@@ -51,7 +51,11 @@ public abstract class JcrCommand<T> impl
         try {
             session = repository.login(credentials);
 
-            return JcrResult.success(execute0(session));
+            T result = execute0(session);
+
+            session.save();
+
+            return JcrResult.success(result);
         } catch (LoginException e) {
             return JcrResult.failure(e);
         } catch (RepositoryException e) {



Mime
View raw message