directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r760253 - in /directory/apacheds/branches/apacheds-replication/server-tools: pom.xml src/main/java/org/apache/directory/server/tools/DumpCommand.java src/main/java/org/apache/directory/server/tools/IndexCommand.java
Date Mon, 30 Mar 2009 23:18:51 GMT
Author: elecharny
Date: Mon Mar 30 23:18:51 2009
New Revision: 760253

URL: http://svn.apache.org/viewvc?rev=760253&view=rev
Log:
Changed the code to compile with Cursor in shared

Modified:
    directory/apacheds/branches/apacheds-replication/server-tools/pom.xml
    directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
    directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/IndexCommand.java

Modified: directory/apacheds/branches/apacheds-replication/server-tools/pom.xml
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/server-tools/pom.xml?rev=760253&r1=760252&r2=760253&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/server-tools/pom.xml (original)
+++ directory/apacheds/branches/apacheds-replication/server-tools/pom.xml Mon Mar 30 23:18:51
2009
@@ -95,6 +95,11 @@
       <artifactId>commons-lang</artifactId>
     </dependency>
 
+    <dependency>
+      <groupId>org.apache.directory.shared</groupId>
+      <version>${org.apache.directory.shared.version}</version>
+      <artifactId>shared-cursor</artifactId>
+    </dependency>
   </dependencies>
 
   <build>

Modified: directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java?rev=760253&r1=760252&r2=760253&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
(original)
+++ directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/DumpCommand.java
Mon Mar 30 23:18:51 2009
@@ -43,7 +43,6 @@
 import org.apache.directory.server.constants.ServerDNConstants;
 import org.apache.directory.server.core.DefaultDirectoryService;
 import org.apache.directory.server.core.DirectoryService;
-import org.apache.directory.server.core.cursor.Cursor;
 import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTable;
@@ -65,6 +64,7 @@
 import org.apache.directory.server.xdbm.Index;
 import org.apache.directory.server.xdbm.Tuple;
 import org.apache.directory.shared.ldap.MultiException;
+import org.apache.directory.shared.ldap.cursor.Cursor;
 import org.apache.directory.shared.ldap.exception.LdapConfigurationException;
 import org.apache.directory.shared.ldap.exception.LdapNamingException;
 import org.apache.directory.shared.ldap.ldif.LdifUtils;

Modified: directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/IndexCommand.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/IndexCommand.java?rev=760253&r1=760252&r2=760253&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/IndexCommand.java
(original)
+++ directory/apacheds/branches/apacheds-replication/server-tools/src/main/java/org/apache/directory/server/tools/IndexCommand.java
Mon Mar 30 23:18:51 2009
@@ -39,7 +39,6 @@
 import org.apache.directory.server.constants.ServerDNConstants;
 import org.apache.directory.server.core.DefaultDirectoryService;
 import org.apache.directory.server.core.DirectoryService;
-import org.apache.directory.server.core.cursor.Cursor;
 import org.apache.directory.server.core.entry.ServerEntry;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmIndex;
 import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmMasterTable;
@@ -60,6 +59,7 @@
 import org.apache.directory.server.xdbm.Index;
 import org.apache.directory.server.xdbm.Tuple;
 import org.apache.directory.shared.ldap.MultiException;
+import org.apache.directory.shared.ldap.cursor.Cursor;
 import org.apache.directory.shared.ldap.exception.LdapConfigurationException;
 import org.apache.directory.shared.ldap.exception.LdapNamingException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
@@ -212,6 +212,7 @@
         index.init( attributeType, partitionDirectory );
 
         Cursor<Tuple<Long,ServerEntry>> list = master.cursor();
+        
         while ( list.next() )
         {
             Tuple<Long,ServerEntry> tuple = list.get();



Mime
View raw message