@@ -639,6 +639,10 @@ protected CompilerResult compileOutOfProcess(CompilerConfiguration config, Strin
639
639
// then, but basically, we are throwing away information here.
640
640
returnCode = CommandLineUtils .executeCommandLine (cli , out , out );
641
641
642
+ if (getLog ().isDebugEnabled ()) {
643
+ getLog ().debug ("Compiler output:{}{}" , EOL , out .getOutput ());
644
+ }
645
+
642
646
messages = parseModernStream (returnCode , new BufferedReader (new StringReader (out .getOutput ())));
643
647
} catch (CommandLineException | IOException e ) {
644
648
throw new CompilerException ("Error while executing the external compiler." , e );
@@ -681,14 +685,19 @@ protected CompilerResult compileInProcessWithProperClassloader(Class<?> javacCla
681
685
/**
682
686
* Helper method for compileInProcess()
683
687
*/
684
- private static CompilerResult compileInProcess0 (Class <?> javacClass , String [] args ) throws CompilerException {
688
+ private CompilerResult compileInProcess0 (Class <?> javacClass , String [] args ) throws CompilerException {
685
689
StringWriter out = new StringWriter ();
686
690
Integer ok ;
687
691
List <CompilerMessage > messages ;
688
692
689
693
try {
690
694
Method compile = javacClass .getMethod ("compile" , new Class [] {String [].class , PrintWriter .class });
691
695
ok = (Integer ) compile .invoke (null , new Object [] {args , new PrintWriter (out )});
696
+
697
+ if (getLog ().isDebugEnabled ()) {
698
+ getLog ().debug ("Compiler output:{}{}" , EOL , out .toString ());
699
+ }
700
+
692
701
messages = parseModernStream (ok , new BufferedReader (new StringReader (out .toString ())));
693
702
} catch (NoSuchMethodException | IOException | InvocationTargetException | IllegalAccessException e ) {
694
703
throw new CompilerException ("Error while executing the compiler." , e );
0 commit comments