directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r486000 - in /directory/branches/trunks/schema/apacheds: bootstrap-partition/pom.xml bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java bootstrap-plugin/src/main/resources/log4j.properties
Date Tue, 12 Dec 2006 03:21:44 GMT
Author: akarasulu
Date: Mon Dec 11 19:21:44 2006
New Revision: 486000

URL: http://svn.apache.org/viewvc?view=rev&rev=486000
Log:
fixed bug with missing schema and added logging file

Added:
    directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/resources/log4j.properties
Modified:
    directory/branches/trunks/schema/apacheds/bootstrap-partition/pom.xml
    directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java

Modified: directory/branches/trunks/schema/apacheds/bootstrap-partition/pom.xml
URL: http://svn.apache.org/viewvc/directory/branches/trunks/schema/apacheds/bootstrap-partition/pom.xml?view=diff&rev=486000&r1=485999&r2=486000
==============================================================================
--- directory/branches/trunks/schema/apacheds/bootstrap-partition/pom.xml (original)
+++ directory/branches/trunks/schema/apacheds/bootstrap-partition/pom.xml Mon Dec 11 19:21:44
2006
@@ -40,41 +40,16 @@
         <configuration>
           <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.ApachednsSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.AutofsSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.CollectiveSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.CorbaSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.CosineSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.DhcpSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.InetorgpersonSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.JavaSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.Krb5kdcSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
-          	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.MiscSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.MozillaSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.NisSchema</bootstrapSchemaClass>
-          </bootstrapSchemaClasses>
-          <bootstrapSchemaClasses>
           	<bootstrapSchemaClass>org.apache.directory.server.core.schema.bootstrap.SambaSchema</bootstrapSchemaClass>
           </bootstrapSchemaClasses>
         </configuration>

Modified: directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
URL: http://svn.apache.org/viewvc/directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java?view=diff&rev=486000&r1=485999&r2=486000
==============================================================================
--- directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
(original)
+++ directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/java/org/apache/directory/server/core/bootstrap/plugin/BootstrapPlugin.java
Mon Dec 11 19:21:44 2006
@@ -79,16 +79,17 @@
         // load the bootstrap schemas to pre-load into the partition
         // -------------------------------------------------------------------
 
+        // always include these core bootstrap schemas
         Registries registries = new BootstrapRegistries();
         Set<BootstrapSchema> schemas = new HashSet<BootstrapSchema>();
-        
-        // always include these core bootstrap schemas
         schemas.add( new SystemSchema() );
         schemas.add( new ApacheSchema() );
         schemas.add( new ApachemetaSchema() );
         schemas.add( new CoreSchema() );
         
-        // start looking up and loading the other schemas
+        getLog().info( "Found bootstrap schemas: " );
+
+        // start loading other schemas from the plugin's configuration section
         for ( String schemaClassName: bootstrapSchemaClasses )
         {
             try
@@ -112,6 +113,8 @@
                 throw new MojoFailureException( "Could not instantiate BootstrapSchema class
due to security: "
                     + schemaClassName );
             }
+            
+            getLog().info( "\t" + schemaClassName );
         }
         
         BootstrapSchemaLoader loader = new BootstrapSchemaLoader();

Added: directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/resources/log4j.properties?view=auto&rev=486000
==============================================================================
--- directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/resources/log4j.properties
(added)
+++ directory/branches/trunks/schema/apacheds/bootstrap-plugin/src/main/resources/log4j.properties
Mon Dec 11 19:21:44 2006
@@ -0,0 +1,6 @@
+log4j.rootCategory=ERROR, stdout
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=[%d{HH:mm:ss}] %p [%c] - %m%n
+



Mime
View raw message