From 20152f3141e34336d97a7591941402e6ab2d7936 Mon Sep 17 00:00:00 2001 From: Jared Stehler Date: Wed, 12 Jul 2023 10:31:46 -0400 Subject: [PATCH] use platform-specific EOL --- .../org/codehaus/plexus/compiler/javac/JavacCompiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java b/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java index ab5a0f90..9fb41f34 100644 --- a/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java +++ b/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java @@ -564,7 +564,7 @@ protected CompilerResult compileOutOfProcess(CompilerConfiguration config, Strin returnCode = CommandLineUtils.executeCommandLine(cli, out, out); if (log.isDebugEnabled()) { - log.debug("Compiler output:\n{}", out.getOutput()); + log.debug("Compiler output:{}{}", EOL, out.getOutput()); } messages = parseModernStream(returnCode, new BufferedReader(new StringReader(out.getOutput()))); @@ -622,7 +622,7 @@ private CompilerResult compileInProcess0(Class javacClass, String[] args) thr ok = (Integer) compile.invoke(null, new Object[] {args, new PrintWriter(out)}); if (log.isDebugEnabled()) { - log.debug("Compiler output:\n{}", out.toString()); + log.debug("Compiler output:{}{}", EOL, out.toString()); } messages = parseModernStream(ok, new BufferedReader(new StringReader(out.toString())));