You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stanbol.apache.org by rw...@apache.org on 2013/02/25 11:14:59 UTC

svn commit: r1449643 - in /stanbol/trunk/entityhub/yard/solr: pom.xml src/test/resources/ src/test/resources/log4j.properties

Author: rwesten
Date: Mon Feb 25 10:14:59 2013
New Revision: 1449643

URL: http://svn.apache.org/r1449643
Log:
STANBOL-960: deactivates Solr INFO level loggings for unit tests of the entityhub.yard.solr module

Added:
    stanbol/trunk/entityhub/yard/solr/src/test/resources/
    stanbol/trunk/entityhub/yard/solr/src/test/resources/log4j.properties   (with props)
Modified:
    stanbol/trunk/entityhub/yard/solr/pom.xml

Modified: stanbol/trunk/entityhub/yard/solr/pom.xml
URL: http://svn.apache.org/viewvc/stanbol/trunk/entityhub/yard/solr/pom.xml?rev=1449643&r1=1449642&r2=1449643&view=diff
==============================================================================
--- stanbol/trunk/entityhub/yard/solr/pom.xml (original)
+++ stanbol/trunk/entityhub/yard/solr/pom.xml Mon Feb 25 10:14:59 2013
@@ -64,6 +64,9 @@
           <instructions>
             <Import-Package>
               org.apache.stanbol.entityhub.servicesapi.site; provide:=true; version="[0.11,0.13)",
+              org.apache.stanbol.entityhub.yard.solr.defaults,
+              org.apache.stanbol.entityhub.yard.solr.model,
+              org.apache.stanbol.entityhub.yard.solr.query,
               *
             </Import-Package>
             <Export-Package>
@@ -155,7 +158,7 @@
     <dependency>
       <groupId>org.apache.stanbol</groupId>
       <artifactId>org.apache.stanbol.entityhub.test</artifactId>
-      <version>0.11.0</version>
+      <version>0.12.0-SNAPSHOT</version>
       <scope>test</scope>
     </dependency>
     <dependency>
@@ -163,9 +166,14 @@
       <artifactId>junit</artifactId>
       <scope>test</scope>
     </dependency>
-    <dependency>
+    <dependency>  <!-- used for debug level logging during tests -->
       <groupId>org.slf4j</groupId>
-      <artifactId>slf4j-simple</artifactId>
+      <artifactId>slf4j-log4j12</artifactId>
+      <scope>test</scope>
+    </dependency>
+    <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>log4j</artifactId>
       <scope>test</scope>
     </dependency>
   </dependencies>

Added: stanbol/trunk/entityhub/yard/solr/src/test/resources/log4j.properties
URL: http://svn.apache.org/viewvc/stanbol/trunk/entityhub/yard/solr/src/test/resources/log4j.properties?rev=1449643&view=auto
==============================================================================
--- stanbol/trunk/entityhub/yard/solr/src/test/resources/log4j.properties (added)
+++ stanbol/trunk/entityhub/yard/solr/src/test/resources/log4j.properties Mon Feb 25 10:14:59 2013
@@ -0,0 +1,26 @@
+# 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.
+
+# Root logger option
+log4j.rootLogger=INFO, stdout
+ 
+# Direct log messages to stdout
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
+log4j.logger.org.apache.stanbol.entityhub.yard.solr=DEBUG
+log4j.logger.org.apache.solr=WARN
+log4j.logger.org.apache.lucene=WARN
\ No newline at end of file

Propchange: stanbol/trunk/entityhub/yard/solr/src/test/resources/log4j.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain