directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r918128 - in /directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif: LdifReader.java LdifUtils.java
Date Tue, 02 Mar 2010 17:51:51 GMT
Author: elecharny
Date: Tue Mar  2 17:51:50 2010
New Revision: 918128

URL: http://svn.apache.org/viewvc?rev=918128&view=rev
Log:
Fixed the generated LDIF which were containing a changeType: add in the schema

Modified:
    directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
    directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifUtils.java

Modified: directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java?rev=918128&r1=918127&r2=918128&view=diff
==============================================================================
--- directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
(original)
+++ directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifReader.java
Tue Mar  2 17:51:50 2010
@@ -1885,4 +1885,5 @@
             reader.close();
         }
     }
-}
\ No newline at end of file
+}
+

Modified: directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifUtils.java?rev=918128&r1=918127&r2=918128&view=diff
==============================================================================
--- directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifUtils.java
(original)
+++ directory/shared/trunk/ldap-ldif/src/main/java/org/apache/directory/shared/ldap/ldif/LdifUtils.java
Tue Mar  2 17:51:50 2010
@@ -320,9 +320,12 @@
         
         // Dump the ChangeType
         String changeType = entry.getChangeType().toString().toLowerCase();
-        sb.append( stripLineToNChars( "changetype: " + changeType, length ) );
         
-        sb.append( '\n' );
+        if ( entry.getChangeType() != ChangeType.Modify )
+        {
+            sb.append( stripLineToNChars( "changetype: " + changeType, length ) );
+            sb.append( '\n' );
+        }
 
         switch ( entry.getChangeType() )
         {



Mime
View raw message