Skip to content

Commit

Permalink
Issue #4572 - Fixing osgi testing and org.slf4j
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <[email protected]>
  • Loading branch information
joakime committed Feb 24, 2020
1 parent 4c8f2d6 commit 8c06600
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 16 deletions.
6 changes: 6 additions & 0 deletions jetty-osgi/test-jetty-osgi/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,12 @@
<artifactId>jetty-test-helper</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,8 @@ public static List<Option> coreJettyDependencies()
res.add(mavenBundle().groupId("org.apache.aries.spifly").artifactId("org.apache.aries.spifly.dynamic.bundle").versionAsInProject().start());
res.add(mavenBundle().groupId("jakarta.annotation").artifactId("jakarta.annotation-api").versionAsInProject().start());
res.add(mavenBundle().groupId("org.apache.geronimo.specs").artifactId("geronimo-jta_1.1_spec").version("1.1.1").start());
res.add(mavenBundle().groupId("org.slf4j").artifactId("slf4j-api").versionAsInProject().noStart());
res.add(mavenBundle().groupId("org.slf4j").artifactId("slf4j-log4j12").versionAsInProject().noStart());
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-util").versionAsInProject().start());
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-deploy").versionAsInProject().start());
res.add(mavenBundle().groupId("org.eclipse.jetty").artifactId("jetty-server").versionAsInProject().start());
Expand Down
16 changes: 0 additions & 16 deletions jetty-osgi/test-jetty-osgi/src/test/resources/log4j.properties

This file was deleted.

28 changes: 28 additions & 0 deletions jetty-osgi/test-jetty-osgi/src/test/resources/log4j.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="false" xmlns:log4j='http://jakarta.apache.org/log4j/'>

<appender name="console" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{yyyy-MM-dd HH:mm:ss} [%p] :%t: (%c) - %m%n" />
</layout>
</appender>

<logger name="shaded.org.eclipse.aether">
<level value="WARN" />
</logger>
<logger name="shaded.org.apache.http">
<level value="WARN" />
</logger>
<logger name="shaded.org.ops4j">
<level value="WARN" />
</logger>

<logger name="org.ops4j">
<level value="INFO" />
</logger>
<root>
<level value="DEBUG" />
<appender-ref ref="console" />
</root>

</log4j:configuration>

0 comments on commit 8c06600

Please sign in to comment.