@@ -545,6 +545,10 @@ protected CompilerResult compileOutOfProcess(CompilerConfiguration config, Strin
545
545
try {
546
546
returnCode = CommandLineUtils .executeCommandLine (cli , out , out );
547
547
548
+ if (getLog ().isDebugEnabled ()) {
549
+ getLog ().debug ("Compiler output:{}{}" , EOL , out .getOutput ());
550
+ }
551
+
548
552
messages = parseModernStream (returnCode , new BufferedReader (new StringReader (out .getOutput ())));
549
553
} catch (CommandLineException | IOException e ) {
550
554
throw new CompilerException ("Error while executing the external compiler." , e );
@@ -587,7 +591,7 @@ protected CompilerResult compileInProcessWithProperClassloader(Class<?> javacCla
587
591
/**
588
592
* Helper method for compileInProcess()
589
593
*/
590
- private static CompilerResult compileInProcess0 (Class <?> javacClass , String [] args ) throws CompilerException {
594
+ private CompilerResult compileInProcess0 (Class <?> javacClass , String [] args ) throws CompilerException {
591
595
StringWriter out = new StringWriter ();
592
596
593
597
Integer ok ;
@@ -599,6 +603,10 @@ private static CompilerResult compileInProcess0(Class<?> javacClass, String[] ar
599
603
600
604
ok = (Integer ) compile .invoke (null , new Object [] {args , new PrintWriter (out )});
601
605
606
+ if (getLog ().isDebugEnabled ()) {
607
+ getLog ().debug ("Compiler output:{}{}" , EOL , out .toString ());
608
+ }
609
+
602
610
messages = parseModernStream (ok , new BufferedReader (new StringReader (out .toString ())));
603
611
} catch (NoSuchMethodException | IOException | InvocationTargetException | IllegalAccessException e ) {
604
612
throw new CompilerException ("Error while executing the compiler." , e );
0 commit comments