directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1749724 - /directory/sandbox/kayyagari/partition-plumber/src/main/java/org/apache/directory/PartitionPlumber.java
Date Wed, 22 Jun 2016 15:39:23 GMT
Author: elecharny
Date: Wed Jun 22 15:39:23 2016
New Revision: 1749724

URL: http://svn.apache.org/viewvc?rev=1749724&view=rev
Log:
Slights modification for a better readablility

Modified:
    directory/sandbox/kayyagari/partition-plumber/src/main/java/org/apache/directory/PartitionPlumber.java

Modified: directory/sandbox/kayyagari/partition-plumber/src/main/java/org/apache/directory/PartitionPlumber.java
URL: http://svn.apache.org/viewvc/directory/sandbox/kayyagari/partition-plumber/src/main/java/org/apache/directory/PartitionPlumber.java?rev=1749724&r1=1749723&r2=1749724&view=diff
==============================================================================
--- directory/sandbox/kayyagari/partition-plumber/src/main/java/org/apache/directory/PartitionPlumber.java
(original)
+++ directory/sandbox/kayyagari/partition-plumber/src/main/java/org/apache/directory/PartitionPlumber.java
Wed Jun 22 15:39:23 2016
@@ -327,7 +327,10 @@ public class PartitionPlumber
 
     public static void main( String[] args )
     {
-        String helpText = "java -jar partition-plumber.jar -d -p [-e]" + "\n-d <instance-dir-path>
\n-p <dn-of-the-partition> \n-e <path-to-directory> - exports the partition data
to an LDIF file under this directory";
+        String helpText = "java -jar partition-plumber.jar -d -p [-e]\n" + 
+                "-d <instance-dir-path> \n" + 
+                "-p <dn-of-the-partition> \n" + 
+                "-e <path-to-directory> - exports the partition data to an LDIF file
under this directory";
 
         if ( args.length < 4 )
         {
@@ -366,16 +369,17 @@ public class PartitionPlumber
         }
 
         File file = new File( instance );
+        
         if ( !file.exists() )
         {
             System.out.println( "The given instance directory " + instance + " doesn't exist"
);
             return;
         }
 
-        PartitionPlumber di = new PartitionPlumber( file );
+        PartitionPlumber partitionPlumber = new PartitionPlumber( file );
         try
         {
-            di.start();
+            partitionPlumber.start();
         }
         catch ( Exception e )
         {
@@ -386,7 +390,7 @@ public class PartitionPlumber
 
         try
         {
-            di.inspect( partitionDn );
+            partitionPlumber.inspect( partitionDn );
         }
         catch ( Exception e )
         {
@@ -398,7 +402,7 @@ public class PartitionPlumber
         {
             try
             {
-                di.exportPartition( partitionDn, targetDir );
+                partitionPlumber.exportPartition( partitionDn, targetDir );
             }
             catch ( Exception e )
             {
@@ -409,12 +413,11 @@ public class PartitionPlumber
 
         try
         {
-            di.stop();
+            partitionPlumber.stop();
         }
         catch ( Exception e )
         {
             // ignore
         }
-
     }
 }



Mime
View raw message