Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: olivier lamy <[email protected]>
  • Loading branch information
olamy committed Aug 14, 2020
1 parent d900082 commit 6b792f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,10 @@ public static List<CompilerMessage> parseCompilerOutput( BufferedReader buffered
List<CompilerMessage> 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 )
Expand All @@ -327,7 +328,7 @@ public static List<CompilerMessage> parseCompilerOutput( BufferedReader buffered

line = bufferedReader.readLine();
}

System.out.println("end output");
return messages;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}
Expand Down

0 comments on commit 6b792f2

Please sign in to comment.