Honor ${maven.home}/conf/logging/logback.xml

This commit is contained in:
Peter Palaga
2020-06-30 11:23:53 +02:00
parent 79175e4287
commit 0d64f525d9
6 changed files with 24 additions and 22 deletions

View File

@@ -164,7 +164,8 @@ public class MvndTestExtension implements BeforeAllCallback, BeforeEachCallback,
testExecutionDir,
testExecutionDir,
Paths.get(System.getProperty("java.home")).toAbsolutePath().normalize(),
localMavenRepository, settingsPath);
localMavenRepository, settingsPath,
mvndHome.resolve("conf/logging/logback.xml"));
final DaemonRegistry registry = new DaemonRegistry(layout.registry());
return new MvndResource(layout, registry, isNative, timeoutMs);

View File

@@ -23,9 +23,9 @@ public class TestLayout extends ClientLayout {
private final Path testDir;
public TestLayout(Path testDir, Path mvndPropertiesPath, Path mavenHome, Path userDir, Path multiModuleProjectDirectory,
Path javaHome,
Path localMavenRepository, Path settings) {
super(mvndPropertiesPath, mavenHome, userDir, multiModuleProjectDirectory, javaHome, localMavenRepository, settings);
Path javaHome, Path localMavenRepository, Path settings, Path logbackConfigurationPath) {
super(mvndPropertiesPath, mavenHome, userDir, multiModuleProjectDirectory, javaHome, localMavenRepository,
settings, logbackConfigurationPath);
this.testDir = testDir;
}