This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push: new af4debc589 [MNG-8605] The log file should be appended to (#2137) af4debc589 is described below commit af4debc589864e9095c314903a6180dd8a482461 Author: Guillaume Nodet <gno...@gmail.com> AuthorDate: Tue Mar 4 15:08:37 2025 +0100 [MNG-8605] The log file should be appended to (#2137) --- .../src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java index 18a2627166..d07f66179f 100644 --- a/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java +++ b/impl/maven-logging/src/main/java/org/apache/maven/slf4j/SimpleLoggerConfiguration.java @@ -231,7 +231,7 @@ private static OutputChoice computeOutputChoice(String logFile, boolean cacheOut return new OutputChoice(cacheOutputStream ? OutputChoiceType.CACHED_SYS_OUT : OutputChoiceType.SYS_OUT); } else { try { - FileOutputStream fos = new FileOutputStream(logFile); + FileOutputStream fos = new FileOutputStream(logFile, true); PrintStream printStream = new PrintStream(fos); return new OutputChoice(printStream); } catch (FileNotFoundException e) {