commit f5c36de87dfe2d2d1de1b11f91ecbe94260ffb9f Author: Cristiano Gavião <cvgav...@gmail.com> AuthorDate: Fri, 30 May 2014 18:37:02 -0300 Commit: Cristiano Gavião <cvgav...@gmail.com> CommitDate: Fri, 30 May 2014 18:37:02 -0300
added an osgi log listener bundle diff --git a/jbehave-osgi-bundles/org.jbehave.osgi.logging/pom.xml b/jbehave-osgi-bundles/org.jbehave.osgi.logging/pom.xml index d2337f6..7fd4f42 100644 --- a/jbehave-osgi-bundles/org.jbehave.osgi.logging/pom.xml +++ b/jbehave-osgi-bundles/org.jbehave.osgi.logging/pom.xml @@ -23,11 +23,6 @@ <artifactId>org.osgi.compendium</artifactId> <scope>provided</scope> </dependency> - <dependency> - <groupId>org.apache.felix</groupId> - <artifactId>org.apache.felix.scr.ds-annotations</artifactId> - <scope>provided</scope> - </dependency> </dependencies> <build> <plugins> @@ -45,27 +40,11 @@ </instructions> </configuration> </plugin> - <plugin> - <groupId>org.apache.felix</groupId> - <artifactId>maven-scr-plugin</artifactId> - </plugin> <!-- enable source bundle generation --> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <executions> - <execution> - <id>copy-manifest</id> - </execution> - <execution> - <id>copy-osgi-inf</id> - </execution> - </executions> - </plugin> </plugins> </build> </project> \ No newline at end of file diff --git a/jbehave-osgi-bundles/org.jbehave.osgi.logging/src/main/java/org/jbehave/osgi/logging/ConsoleLogComponent.java b/jbehave-osgi-bundles/org.jbehave.osgi.logging/src/main/java/org/jbehave/osgi/logging/ConsoleLogComponent.java index c5e8ce6..f9f72d8 100644 --- a/jbehave-osgi-bundles/org.jbehave.osgi.logging/src/main/java/org/jbehave/osgi/logging/ConsoleLogComponent.java +++ b/jbehave-osgi-bundles/org.jbehave.osgi.logging/src/main/java/org/jbehave/osgi/logging/ConsoleLogComponent.java @@ -10,7 +10,7 @@ import org.osgi.service.log.LogReaderService; @Component(immediate = true, service = ConsoleLogComponent.class) public class ConsoleLogComponent { - List<LogReaderService> logReaderServices = new CopyOnWriteArrayList<>(); + List<LogReaderService> logReaderServices = new CopyOnWriteArrayList<LogReaderService>(); ConsoleOutput consoleOutput = new ConsoleOutput();