directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r636987 - /directory/sandbox/akarasulu/bigbang/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
Date Fri, 14 Mar 2008 04:11:24 GMT
Author: akarasulu
Date: Thu Mar 13 21:11:23 2008
New Revision: 636987

URL: http://svn.apache.org/viewvc?rev=636987&view=rev
Log:
making plugin compile at least - still does not work

Modified:
    directory/sandbox/akarasulu/bigbang/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java

Modified: directory/sandbox/akarasulu/bigbang/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/bigbang/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java?rev=636987&r1=636986&r2=636987&view=diff
==============================================================================
--- directory/sandbox/akarasulu/bigbang/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
(original)
+++ directory/sandbox/akarasulu/bigbang/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
Thu Mar 13 21:11:23 2008
@@ -210,7 +210,7 @@
         {
             initializePartition( schemaDirectory );
         }
-        catch ( NamingException ne )
+        catch ( Exception ne )
         {
             throw new MojoFailureException( "Failed to initialize the root partition :" +

                 ne.getMessage() );
@@ -259,7 +259,7 @@
             
             createSchemaModificationAttributesEntry();
         }
-        catch ( NamingException e )
+        catch ( Exception e )
         {
             e.printStackTrace();
             throw new MojoFailureException( "Failed to add syntaxCheckers to partition: "
+ e.getMessage() );
@@ -269,7 +269,7 @@
         {
             store.sync();
         }
-        catch ( NamingException e )
+        catch ( Exception e )
         {
             e.printStackTrace();
         }
@@ -308,7 +308,7 @@
 
     private static final String[] OTHER_SCHEMA_DEPENDENCIES = new String[] { "system", "core",
"apache", "apachemeta" };
     
-    private void createSchemasAndContainers() throws NamingException
+    private void createSchemasAndContainers() throws Exception
     {
         Map<String, Schema> schemaMap = this.registries.getLoadedSchemas();
         
@@ -344,7 +344,7 @@
     }
 
 
-    private void createSchemaAndContainers( Schema schema ) throws NamingException
+    private void createSchemaAndContainers( Schema schema ) throws Exception
     {
         LdapDN dn = new LdapDN( SchemaConstants.CN_AT + "=" 
             + schema.getSchemaName() + "," + SchemaConstants.OU_AT + "=schema" );
@@ -414,7 +414,7 @@
     }
 
     
-    private void addAttributeTypes() throws NamingException
+    private void addAttributeTypes() throws Exception
     {
         getLog().info( "------------------------------------------------------------------------"
);
         getLog().info( " Adding attributeTypes:" );
@@ -445,7 +445,7 @@
     }
 
 
-    private void addObjectClasses() throws NamingException
+    private void addObjectClasses() throws Exception
     {
         getLog().info( "------------------------------------------------------------------------"
);
         getLog().info( " Adding objectClasses:" );
@@ -475,7 +475,7 @@
     }
 
 
-    private void addMatchingRules() throws NamingException
+    private void addMatchingRules() throws Exception
     {
         getLog().info( "------------------------------------------------------------------------"
);
         getLog().info( " Adding matchingRules:" );
@@ -505,7 +505,7 @@
     }
 
 
-    private void addComparators() throws NamingException
+    private void addComparators() throws Exception
     {
         getLog().info( "------------------------------------------------------------------------"
);
         getLog().info( " Adding comparators:" );
@@ -534,7 +534,7 @@
     }
 
 
-    private void addNormalizers() throws NamingException
+    private void addNormalizers() throws Exception
     {
         getLog().info( "------------------------------------------------------------------------"
);
         getLog().info( " Adding normalizers:" );
@@ -564,7 +564,7 @@
     }
 
 
-    private void addSyntaxes() throws NamingException
+    private void addSyntaxes() throws Exception
     {
         getLog().info( "------------------------------------------------------------------------"
);
         getLog().info( " Adding syntaxes:" );
@@ -592,7 +592,7 @@
     }
 
 
-    private void addSyntaxCheckers() throws NamingException
+    private void addSyntaxCheckers() throws Exception
     {
         getLog().info( "------------------------------------------------------------------------"
);
         getLog().info( " Adding syntaxCheckers:" );
@@ -628,7 +628,7 @@
      *
      * @throws MojoFailureException
      */
-    private void initializePartition( File workingDirectory ) throws MojoFailureException,
NamingException
+    private void initializePartition( File workingDirectory ) throws MojoFailureException,
Exception
     {
         store.setCacheSize( 1000 );
         store.setEnableOptimizer( false );
@@ -658,7 +658,7 @@
         {
             store.init( this.registries.getOidRegistry(), this.registries.getAttributeTypeRegistry()
);
         }
-        catch ( NamingException e )
+        catch ( Exception e )
         {
             e.printStackTrace();
             throw new MojoFailureException( "Failed to initialize parition: " + e.getMessage()
);
@@ -674,7 +674,7 @@
      * 
      * @throws NamingException if there is a failure to add the entry 
      */
-    private void createSchemaModificationAttributesEntry() throws NamingException
+    private void createSchemaModificationAttributesEntry() throws Exception
     {
         Attributes entry = new AttributesImpl( 
             SchemaConstants.OBJECT_CLASS_AT, 
@@ -799,7 +799,7 @@
     }
 
 
-    private void checkCreateContainer( LdapDN dn ) throws NamingException
+    private void checkCreateContainer( LdapDN dn ) throws Exception
     {
         if ( hasEntry( dn ) )
         {
@@ -814,7 +814,7 @@
     }
 
 
-    private LdapDN checkCreateSchema( String schemaName ) throws NamingException
+    private LdapDN checkCreateSchema( String schemaName ) throws Exception
     {
         Schema schema = schemas.get( schemaName );
         LdapDN dn = new LdapDN( SchemaConstants.CN_AT + "="
@@ -832,7 +832,7 @@
     }
 
 
-    private void disableSchema( String schemaName ) throws NamingException
+    private void disableSchema( String schemaName ) throws Exception
     {
         LdapDN dn = new LdapDN( SchemaConstants.CN_AT + "=" + schemaName
                 + "," + SchemaConstants.OU_AT + "=schema" );
@@ -859,7 +859,7 @@
     }
 
 
-    private final boolean hasEntry( LdapDN dn ) throws NamingException
+    private final boolean hasEntry( LdapDN dn ) throws Exception
     {
         Long id = store.getEntryId( dn.toNormName() );
         



Mime
View raw message