mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 09:16:02 +02:00
Fix unit test case failure due to warning in .log
This commit is contained in:
parent
05d97a6e80
commit
7582b75465
1 changed files with 20 additions and 18 deletions
|
@ -123,27 +123,29 @@ public class DefaultRunSIProvider implements IExternalScannerInfoProvider {
|
||||||
ICommandLauncher launcher = new CommandLauncher();
|
ICommandLauncher launcher = new CommandLauncher();
|
||||||
launcher.setProject(project);
|
launcher.setProject(project);
|
||||||
|
|
||||||
String[] comandLineOptions = getCommandLineOptions();
|
|
||||||
IPath program = getCommandToLaunch();
|
IPath program = getCommandToLaunch();
|
||||||
URI workingDirectoryURI = MakeBuilderUtil.getBuildDirectoryURI(project, MakeBuilder.BUILDER_ID);
|
if (! program.isEmpty()) {
|
||||||
String[] envp = setEnvironment(launcher, env);
|
String[] comandLineOptions = getCommandLineOptions();
|
||||||
|
URI workingDirectoryURI = MakeBuilderUtil.getBuildDirectoryURI(project, MakeBuilder.BUILDER_ID);
|
||||||
ErrorParserManager epm = new ErrorParserManager(project, markerGenerator, new String[] {GMAKE_ERROR_PARSER_ID});
|
String[] envp = setEnvironment(launcher, env);
|
||||||
|
|
||||||
List<IConsoleParser> parsers = new ArrayList<IConsoleParser>();
|
ErrorParserManager epm = new ErrorParserManager(project, markerGenerator, new String[] {GMAKE_ERROR_PARSER_ID});
|
||||||
IConsoleParser parser = ScannerInfoConsoleParserFactory.getESIConsoleParser(project, context, providerId, buildInfo, collector, markerGenerator);
|
|
||||||
if (parser != null) {
|
List<IConsoleParser> parsers = new ArrayList<IConsoleParser>();
|
||||||
parsers.add(parser);
|
IConsoleParser parser = ScannerInfoConsoleParserFactory.getESIConsoleParser(project, context, providerId, buildInfo, collector, markerGenerator);
|
||||||
|
if (parser != null) {
|
||||||
|
parsers.add(parser);
|
||||||
|
}
|
||||||
|
|
||||||
|
buildRunnerHelper.setLaunchParameters(launcher, program, comandLineOptions, workingDirectoryURI, envp );
|
||||||
|
buildRunnerHelper.prepareStreams(epm, parsers, console, new SubProgressMonitor(monitor, TICKS_STREAM_PROGRESS_MONITOR, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
|
||||||
|
|
||||||
|
buildRunnerHelper.greeting(MakeMessages.getFormattedString("ExternalScannerInfoProvider.Greeting", project.getName())); //$NON-NLS-1$
|
||||||
|
buildRunnerHelper.build(new SubProgressMonitor(monitor, TICKS_EXECUTE_PROGRAM, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
|
||||||
|
buildRunnerHelper.close();
|
||||||
|
buildRunnerHelper.goodbye();
|
||||||
}
|
}
|
||||||
|
|
||||||
buildRunnerHelper.setLaunchParameters(launcher, program, comandLineOptions, workingDirectoryURI, envp );
|
|
||||||
buildRunnerHelper.prepareStreams(epm, parsers, console, new SubProgressMonitor(monitor, TICKS_STREAM_PROGRESS_MONITOR, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
|
|
||||||
|
|
||||||
buildRunnerHelper.greeting(MakeMessages.getFormattedString("ExternalScannerInfoProvider.Greeting", project.getName())); //$NON-NLS-1$
|
|
||||||
buildRunnerHelper.build(new SubProgressMonitor(monitor, TICKS_EXECUTE_PROGRAM, SubProgressMonitor.PREPEND_MAIN_LABEL_TO_SUBTASK));
|
|
||||||
buildRunnerHelper.close();
|
|
||||||
buildRunnerHelper.goodbye();
|
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
MakeCorePlugin.log(e);
|
MakeCorePlugin.log(e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Add table
Reference in a new issue