@@ -563,6 +563,10 @@ protected CompilerResult compileOutOfProcess(CompilerConfiguration config, Strin
563
563
try {
564
564
returnCode = CommandLineUtils .executeCommandLine (cli , out , out );
565
565
566
+ if (log .isDebugEnabled ()) {
567
+ log .debug ("Compiler output:\n {}" , out .getOutput ());
568
+ }
569
+
566
570
messages = parseModernStream (returnCode , new BufferedReader (new StringReader (out .getOutput ())));
567
571
} catch (CommandLineException | IOException e ) {
568
572
throw new CompilerException ("Error while executing the external compiler." , e );
@@ -605,7 +609,7 @@ protected CompilerResult compileInProcessWithProperClassloader(Class<?> javacCla
605
609
/**
606
610
* Helper method for compileInProcess()
607
611
*/
608
- private static CompilerResult compileInProcess0 (Class <?> javacClass , String [] args ) throws CompilerException {
612
+ private CompilerResult compileInProcess0 (Class <?> javacClass , String [] args ) throws CompilerException {
609
613
StringWriter out = new StringWriter ();
610
614
611
615
Integer ok ;
@@ -617,6 +621,10 @@ private static CompilerResult compileInProcess0(Class<?> javacClass, String[] ar
617
621
618
622
ok = (Integer ) compile .invoke (null , new Object [] {args , new PrintWriter (out )});
619
623
624
+ if (log .isDebugEnabled ()) {
625
+ log .debug ("Compiler output:\n {}" , out .toString ());
626
+ }
627
+
620
628
messages = parseModernStream (ok , new BufferedReader (new StringReader (out .toString ())));
621
629
} catch (NoSuchMethodException | IOException | InvocationTargetException | IllegalAccessException e ) {
622
630
throw new CompilerException ("Error while executing the compiler." , e );
0 commit comments