directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r808370 - in /directory/apacheds/branches/apacheds-schema/schema-loader/src: main/java/org/apache/directory/server/schema/loader/ldif/LdifSchemaLoader.java test/resources/ test/resources/log4j.properties
Date Thu, 27 Aug 2009 11:15:13 GMT
Author: akarasulu
Date: Thu Aug 27 11:15:13 2009
New Revision: 808370

URL: http://svn.apache.org/viewvc?rev=808370&view=rev
Log:
adding some logging to start debugging and testing the loader

Added:
    directory/apacheds/branches/apacheds-schema/schema-loader/src/test/resources/
    directory/apacheds/branches/apacheds-schema/schema-loader/src/test/resources/log4j.properties
Modified:
    directory/apacheds/branches/apacheds-schema/schema-loader/src/main/java/org/apache/directory/server/schema/loader/ldif/LdifSchemaLoader.java

Modified: directory/apacheds/branches/apacheds-schema/schema-loader/src/main/java/org/apache/directory/server/schema/loader/ldif/LdifSchemaLoader.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/schema-loader/src/main/java/org/apache/directory/server/schema/loader/ldif/LdifSchemaLoader.java?rev=808370&r1=808369&r2=808370&view=diff
==============================================================================
--- directory/apacheds/branches/apacheds-schema/schema-loader/src/main/java/org/apache/directory/server/schema/loader/ldif/LdifSchemaLoader.java
(original)
+++ directory/apacheds/branches/apacheds-schema/schema-loader/src/main/java/org/apache/directory/server/schema/loader/ldif/LdifSchemaLoader.java
Thu Aug 27 11:15:13 2009
@@ -89,6 +89,11 @@
                     "path '" + baseDirectory.getAbsolutePath() + "' but no such file found."
);
         }
 
+        if ( IS_DEBUG )
+        {
+            LOG.debug( "Using '{}' as the base schema load directory.", baseDirectory );
+        }
+        
         initializeSchemas();
     }
 
@@ -101,6 +106,11 @@
      */
     private void initializeSchemas() throws Exception
     {
+        if ( IS_DEBUG )
+        {
+            LOG.debug( "Initializing schema" );
+        }
+        
         File schemaDirectory = new File( baseDirectory, "schema" );
         String[] ldifFiles = schemaDirectory.list( ldifFilter );
 

Added: directory/apacheds/branches/apacheds-schema/schema-loader/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/apacheds-schema/schema-loader/src/test/resources/log4j.properties?rev=808370&view=auto
==============================================================================
--- directory/apacheds/branches/apacheds-schema/schema-loader/src/test/resources/log4j.properties
(added)
+++ directory/apacheds/branches/apacheds-schema/schema-loader/src/test/resources/log4j.properties
Thu Aug 27 11:15:13 2009
@@ -0,0 +1,22 @@
+#############################################################################
+#    Licensed to the Apache Software Foundation (ASF) under one or more
+#    contributor license agreements.  See the NOTICE file distributed with
+#    this work for additional information regarding copyright ownership.
+#    The ASF licenses this file to You under the Apache License, Version 2.0
+#    (the "License"); you may not use this file except in compliance with
+#    the License.  You may obtain a copy of the License at
+#
+#       http://www.apache.org/licenses/LICENSE-2.0
+#
+#    Unless required by applicable law or agreed to in writing, software
+#    distributed under the License is distributed on an "AS IS" BASIS,
+#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+#    See the License for the specific language governing permissions and
+#    limitations under the License.
+#############################################################################
+log4j.rootCategory=DEBUG, 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