Skip to content

Commit 6b792f2

Browse files
committed
nit
Signed-off-by: olivier lamy <olamy@apache.org>
1 parent d900082 commit 6b792f2

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

plexus-compilers/plexus-compiler-j2objc/src/main/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompiler.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,10 @@ public static List<CompilerMessage> parseCompilerOutput( BufferedReader buffered
315315
List<CompilerMessage> messages = new ArrayList<>();
316316

317317
String line = bufferedReader.readLine();
318-
318+
System.out.println("start output");
319319
while ( line != null )
320320
{
321+
System.out.println(line);
321322
CompilerMessage compilerError = DefaultJ2ObjCCompilerParser.parseLine( line );
322323

323324
if ( compilerError != null )
@@ -327,7 +328,7 @@ public static List<CompilerMessage> parseCompilerOutput( BufferedReader buffered
327328

328329
line = bufferedReader.readLine();
329330
}
330-
331+
System.out.println("end output");
331332
return messages;
332333
}
333334

plexus-compilers/plexus-compiler-j2objc/src/test/java/org/codehaus/plexus/compiler/j2objc/J2ObjCCompilerTest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public void testJ2ObjCCompiler()
5555
cc.setSourceLocations( Arrays.asList( new String[]{ "src/test/resources" } ) );
5656
cc.setWorkingDirectory( new File( "." ) );
5757
cc.setFork( true );
58+
cc.setVerbose( true );
5859
cc.setCustomCompilerArgumentsAsMap( customCompilerArguments );
5960
try
6061
{

plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,7 @@ protected CompilerResult compileOutOfProcess( CompilerConfiguration config, Stri
568568

569569
messages = parseModernStream( returnCode, new BufferedReader( new StringReader( out.getOutput() ) ) );
570570
}
571-
catch ( CommandLineException e )
572-
{
573-
throw new CompilerException( "Error while executing the external compiler.", e );
574-
}
575-
catch ( IOException e )
571+
catch ( CommandLineException | IOException e )
576572
{
577573
throw new CompilerException( "Error while executing the external compiler.", e );
578574
}

0 commit comments

Comments
 (0)