1
0

[LOGGING-186] Replace custom code with ServiceLoader call (#171)

* Replace custom code with `ServiceLoader` call

* Files should end with an empty line

* Files should end with an empty line

* Comment empty block

* Comment empty block

---------

Co-authored-by: Gary Gregory <garydgregory@users.noreply.github.com>
This commit is contained in:
Piotr P. Karwasz
2023-10-18 22:47:48 +02:00
committed by GitHub
parent 2ec80207a5
commit ca2cdfee81
8 changed files with 187 additions and 32 deletions

21
pom.xml
View File

@@ -391,6 +391,9 @@ under the License.
</goals>
<configuration>
<runOrder>${failsafe.runorder}</runOrder>
<excludes>
<exclude>org/apache/commons/logging/serviceloader/**</exclude>
</excludes>
<includes>
<include>**/*TestCase.java</include>
</includes>
@@ -408,6 +411,24 @@ under the License.
</systemPropertyVariables>
</configuration>
</execution>
<!--
- The ServiceLoaderTestCase uses an alternative implementation of LogFactory,
- therefore it requires a separate execution.
-->
<execution>
<id>serviceLoader-test</id>
<goals>
<goal>integration-test</goal>
</goals>
<configuration>
<additionalClasspathElements>
<additionalClasspathElement>${project.build.testOutputDirectory}/serviceloader</additionalClasspathElement>
</additionalClasspathElements>
<includes>
<include>org/apache/commons/logging/serviceloader/*TestCase.java</include>
</includes>
</configuration>
</execution>
</executions>
</plugin>