directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szoer...@apache.org
Subject svn commit: r717915 - /directory/sandbox/szoerner/helloWorldPartition/src/main/java/org/apache/directory/samples/partition/hello/Main.java
Date Sat, 15 Nov 2008 19:20:37 GMT
Author: szoerner
Date: Sat Nov 15 11:20:36 2008
New Revision: 717915

URL: http://svn.apache.org/viewvc?rev=717915&view=rev
Log:
Simplified main

Modified:
    directory/sandbox/szoerner/helloWorldPartition/src/main/java/org/apache/directory/samples/partition/hello/Main.java

Modified: directory/sandbox/szoerner/helloWorldPartition/src/main/java/org/apache/directory/samples/partition/hello/Main.java
URL: http://svn.apache.org/viewvc/directory/sandbox/szoerner/helloWorldPartition/src/main/java/org/apache/directory/samples/partition/hello/Main.java?rev=717915&r1=717914&r2=717915&view=diff
==============================================================================
--- directory/sandbox/szoerner/helloWorldPartition/src/main/java/org/apache/directory/samples/partition/hello/Main.java
(original)
+++ directory/sandbox/szoerner/helloWorldPartition/src/main/java/org/apache/directory/samples/partition/hello/Main.java
Sat Nov 15 11:20:36 2008
@@ -19,8 +19,6 @@
  */
 package org.apache.directory.samples.partition.hello;
 
-import java.io.File;
-
 import org.apache.directory.server.core.DefaultDirectoryService;
 import org.apache.directory.server.core.DirectoryService;
 import org.apache.directory.server.ldap.LdapService;
@@ -46,13 +44,8 @@
         ldapService.setDirectoryService(directoryService);
         ldapService.setIpPort(10389);
 
-        // Determine an appropriate working directory
-        File workingDir = new File("work");
-        directoryService.setWorkingDirectory(workingDir);
-                
-        // Create a new partition
         HelloWorldPartition helloPartition = new HelloWorldPartition();
-        helloPartition.setSuffix("ou=hello");
+        helloPartition.setSuffix("ou=helloWorld");
         helloPartition.init(directoryService);
         
         directoryService.addPartition(helloPartition);       



Mime
View raw message