diff --git a/plexus-compilers/plexus-compiler-j2objc/src/main/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompiler.java b/plexus-compilers/plexus-compiler-j2objc/src/main/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompiler.java index cd83b126..ae5d867e 100644 --- a/plexus-compilers/plexus-compiler-j2objc/src/main/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompiler.java +++ b/plexus-compilers/plexus-compiler-j2objc/src/main/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompiler.java @@ -315,9 +315,10 @@ public static List parseCompilerOutput( BufferedReader buffered List messages = new ArrayList<>(); String line = bufferedReader.readLine(); - + System.out.println("start output"); while ( line != null ) { + System.out.println(line); CompilerMessage compilerError = DefaultJ2ObjCCompilerParser.parseLine( line ); if ( compilerError != null ) @@ -327,7 +328,7 @@ public static List parseCompilerOutput( BufferedReader buffered line = bufferedReader.readLine(); } - + System.out.println("end output"); return messages; } diff --git a/plexus-compilers/plexus-compiler-j2objc/src/test/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompilerTest.java b/plexus-compilers/plexus-compiler-j2objc/src/test/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompilerTest.java index 488f55a9..a2cbf7ba 100644 --- a/plexus-compilers/plexus-compiler-j2objc/src/test/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompilerTest.java +++ b/plexus-compilers/plexus-compiler-j2objc/src/test/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompilerTest.java @@ -55,6 +55,7 @@ public void testJ2ObjCCompiler() cc.setSourceLocations( Arrays.asList( new String[]{ "src/test/resources" } ) ); cc.setWorkingDirectory( new File( "." ) ); cc.setFork( true ); + cc.setVerbose( true ); cc.setCustomCompilerArgumentsAsMap( customCompilerArguments ); try { 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 9ff79e93..35713fa1 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 @@ -568,11 +568,7 @@ protected CompilerResult compileOutOfProcess( CompilerConfiguration config, Stri messages = parseModernStream( returnCode, new BufferedReader( new StringReader( out.getOutput() ) ) ); } - catch ( CommandLineException e ) - { - throw new CompilerException( "Error while executing the external compiler.", e ); - } - catch ( IOException e ) + catch ( CommandLineException | IOException e ) { throw new CompilerException( "Error while executing the external compiler.", e ); }