mirror of
https://github.com/apache/maven-mvnd.git
synced 2025-09-27 16:08:21 +00:00
Fix daemon logging system
This commit is contained in:
@@ -207,7 +207,7 @@ public class DaemonParameters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public Path logbackConfigurationPath() {
|
public Path logbackConfigurationPath() {
|
||||||
return property(Environment.LOGBACK_CONFIGURATION_FILE)
|
return property(Environment.MVND_LOGBACK)
|
||||||
.orDefault(() -> mvndHome().resolve("conf/logback.xml").toString())
|
.orDefault(() -> mvndHome().resolve("conf/logback.xml").toString())
|
||||||
.orFail()
|
.orFail()
|
||||||
.asPath();
|
.asPath();
|
||||||
|
@@ -60,7 +60,9 @@ public enum Environment {
|
|||||||
/**
|
/**
|
||||||
* The location of the Logback configuration file the daemon should use to configure its logging.
|
* The location of the Logback configuration file the daemon should use to configure its logging.
|
||||||
*/
|
*/
|
||||||
LOGBACK_CONFIGURATION_FILE("logback.configurationFile", null, null, OptionType.PATH, Flags.NONE),
|
MVND_LOGBACK("mvnd.logback", null, null, OptionType.PATH, Flags.NONE),
|
||||||
|
/** The system property expected by logback to set the configuration file */
|
||||||
|
LOGBACK_CONFIGURATION_FILE("logback.configurationFile", null, null, OptionType.PATH, Flags.INTERNAL),
|
||||||
|
|
||||||
//
|
//
|
||||||
// System properties
|
// System properties
|
||||||
|
@@ -37,7 +37,7 @@ public class TestParameters extends DaemonParameters {
|
|||||||
.put(Environment.JAVA_HOME, javaHome)
|
.put(Environment.JAVA_HOME, javaHome)
|
||||||
.put(Environment.MAVEN_REPO_LOCAL, localMavenRepository)
|
.put(Environment.MAVEN_REPO_LOCAL, localMavenRepository)
|
||||||
.put(Environment.MAVEN_SETTINGS, settings)
|
.put(Environment.MAVEN_SETTINGS, settings)
|
||||||
.put(Environment.LOGBACK_CONFIGURATION_FILE, logbackConfigurationPath)
|
.put(Environment.MVND_LOGBACK, logbackConfigurationPath)
|
||||||
.put(Environment.MVND_IDLE_TIMEOUT, TimeUtils.printDuration(idleTimeout))
|
.put(Environment.MVND_IDLE_TIMEOUT, TimeUtils.printDuration(idleTimeout))
|
||||||
.put(Environment.MVND_KEEP_ALIVE, TimeUtils.printDuration(keepAlive))
|
.put(Environment.MVND_KEEP_ALIVE, TimeUtils.printDuration(keepAlive))
|
||||||
.put(Environment.MVND_MAX_LOST_KEEP_ALIVE, maxLostKeepAlive)
|
.put(Environment.MVND_MAX_LOST_KEEP_ALIVE, maxLostKeepAlive)
|
||||||
|
Reference in New Issue
Block a user