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/04/11 10:06:48 UTC

svn commit: r1466786 - in /stanbol/trunk/commons/freemarker: pom.xml src/main/java/org/apache/stanbol/commons/freemarker/impl/Activator.java

Author: rwesten
Date: Thu Apr 11 08:06:47 2013
New Revision: 1466786

URL: http://svn.apache.org/r1466786
Log:
STANBOL-1024: Freemarker now uses SLF4J as default for logging

Added:
    stanbol/trunk/commons/freemarker/src/main/java/org/apache/stanbol/commons/freemarker/impl/Activator.java   (with props)
Modified:
    stanbol/trunk/commons/freemarker/pom.xml

Modified: stanbol/trunk/commons/freemarker/pom.xml
URL: http://svn.apache.org/viewvc/stanbol/trunk/commons/freemarker/pom.xml?rev=1466786&r1=1466785&r2=1466786&view=diff
==============================================================================
--- stanbol/trunk/commons/freemarker/pom.xml (original)
+++ stanbol/trunk/commons/freemarker/pom.xml Thu Apr 11 08:06:47 2013
@@ -56,6 +56,9 @@ from the bundles. More Freemarker utilit
         <extensions>true</extensions>
         <configuration>
           <instructions>
+            <Bundle-Activator>
+              org.apache.stanbol.commons.freemarker.impl.Activator
+            </Bundle-Activator>
             <Embed-Dependency>freemarker</Embed-Dependency>
             <Embed-Transitive>true</Embed-Transitive>
             <Export-Package>freemarker.*</Export-Package>
@@ -73,7 +76,6 @@ from the bundles. More Freemarker utilit
               !org.apache.log.*,
               !com.sun.org.apache.*,
               !javax.el,
-              !org.slf4j.spi,
               !org.zeroturnaround.javarebel,
               javax.servlet.*; version="[2.5.0,4.0.0)",
               javax.ws.rs;version="[0,2)",

Added: stanbol/trunk/commons/freemarker/src/main/java/org/apache/stanbol/commons/freemarker/impl/Activator.java
URL: http://svn.apache.org/viewvc/stanbol/trunk/commons/freemarker/src/main/java/org/apache/stanbol/commons/freemarker/impl/Activator.java?rev=1466786&view=auto
==============================================================================
--- stanbol/trunk/commons/freemarker/src/main/java/org/apache/stanbol/commons/freemarker/impl/Activator.java (added)
+++ stanbol/trunk/commons/freemarker/src/main/java/org/apache/stanbol/commons/freemarker/impl/Activator.java Thu Apr 11 08:06:47 2013
@@ -0,0 +1,24 @@
+package org.apache.stanbol.commons.freemarker.impl;
+
+import org.osgi.framework.BundleActivator;
+import org.osgi.framework.BundleContext;
+
+import freemarker.log.Logger;
+
+/**
+ * {@link BundleActivator} for Freebase. Currently it sets only SLFJ as
+ * Logging framework to the Freebase {@link Logger}
+ * @author westei
+ *
+ */
+public class Activator implements BundleActivator {
+
+    @Override
+    public void start(BundleContext context) throws Exception {
+        Logger.selectLoggerLibrary(Logger.LIBRARY_SLF4J);
+    }
+
+    @Override
+    public void stop(BundleContext context) throws Exception {    }
+
+}

Propchange: stanbol/trunk/commons/freemarker/src/main/java/org/apache/stanbol/commons/freemarker/impl/Activator.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain