jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From edgarp...@apache.org
Subject svn commit: r233002 - /incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/chain/command/ClearWorkspace.java
Date Tue, 16 Aug 2005 14:42:40 GMT
Author: edgarpoce
Date: Tue Aug 16 07:42:14 2005
New Revision: 233002

URL: http://svn.apache.org/viewcvs?rev=233002&view=rev
Log:
 set root as the current working node before clear

Modified:
    incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/chain/command/ClearWorkspace.java

Modified: incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/chain/command/ClearWorkspace.java
URL: http://svn.apache.org/viewcvs/incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/chain/command/ClearWorkspace.java?rev=233002&r1=233001&r2=233002&view=diff
==============================================================================
--- incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/chain/command/ClearWorkspace.java
(original)
+++ incubator/jackrabbit/trunk/contrib/jcr-commands/src/java/org/apache/jackrabbit/chain/command/ClearWorkspace.java
Tue Aug 16 07:42:14 2005
@@ -36,6 +36,8 @@
     public boolean execute(Context ctx) throws Exception
     {
         Session s = CtxHelper.getSession(ctx);
+        // Set current node to root
+        CtxHelper.setCurrentNode(ctx, s.getRootNode()) ;
         NodeIterator iter = s.getRootNode().getNodes();
         while (iter.hasNext())
         {



Mime
View raw message