mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Bug 531043 - Display errors/warning count for makefile & cmake builds
Change-Id: I8b2ab525af137ddd890f5713a3278cce6d17bffd Signed-off-by: William Riley <william.riley@renesas.com>
This commit is contained in:
parent
9a4853aa2d
commit
689ad9f6ec
4 changed files with 14 additions and 12 deletions
|
@ -200,15 +200,16 @@ public class CMakeBuildConfiguration extends CBuildConfiguration {
|
|||
Process process = processBuilder.start();
|
||||
outStream.write(String.join(" ", command) + '\n'); //$NON-NLS-1$
|
||||
watchProcess(process, new IConsoleParser[] { epm });
|
||||
|
||||
project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
|
||||
|
||||
// Load compile_commands.json file
|
||||
processCompileCommandsFile(monitor);
|
||||
|
||||
outStream.write(String.format(Messages.CMakeBuildConfiguration_BuildingComplete, epm.getErrorCount(),
|
||||
epm.getWarningCount(), buildDir.toString()));
|
||||
}
|
||||
|
||||
project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
|
||||
|
||||
// Load compile_commands.json file
|
||||
processCompileCommandsFile(monitor);
|
||||
|
||||
outStream.write(String.format(Messages.CMakeBuildConfiguration_BuildingComplete, buildDir.toString()));
|
||||
|
||||
return new IProject[] { project };
|
||||
} catch (IOException e) {
|
||||
throw new CoreException(Activator.errorStatus(String.format(Messages.CMakeBuildConfiguration_Building, project.getName()), e));
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
################################################################################
|
||||
CMakeBuildConfiguration_Building=Building %s
|
||||
CMakeBuildConfiguration_BuildingIn=Building in: %s\n
|
||||
CMakeBuildConfiguration_BuildingComplete=Build complete: %s\n
|
||||
CMakeBuildConfiguration_BuildingComplete=Build complete (%d errors, %d warnings): %s\n:
|
||||
CMakeBuildConfiguration_Cleaning=Cleaning %s
|
||||
CMakeBuildConfiguration_NotFound=CMakeFiles not found. Assuming clean.
|
||||
CMakeBuildConfiguration_NoToolchainFile=No CMake toolchain file found for this target.
|
||||
|
|
|
@ -264,11 +264,12 @@ public class StandardBuildConfiguration extends CBuildConfiguration {
|
|||
Process process = processBuilder.start();
|
||||
IConsoleParser[] consoleParsers = new IConsoleParser[] { epm, this };
|
||||
watchProcess(process, consoleParsers);
|
||||
project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
|
||||
|
||||
outStream.write(String.format(Messages.StandardBuildConfiguration_1, epm.getErrorCount(),
|
||||
epm.getWarningCount(), buildDir.toString()));
|
||||
}
|
||||
|
||||
project.refreshLocal(IResource.DEPTH_INFINITE, monitor);
|
||||
|
||||
outStream.write(String.format(Messages.StandardBuildConfiguration_1, buildDir.toString()));
|
||||
|
||||
return new IProject[] { project };
|
||||
} catch (IOException e) {
|
||||
|
|
|
@ -10,7 +10,7 @@ CBuilder_ExceptionWhileBuilding2=Exception while building
|
|||
CBuilder_NotConfiguredCorrectly=Build not configured correctly\n
|
||||
CBuilder_NotConfiguredCorrectly2=Build not configured correctly\n
|
||||
StandardBuildConfiguration_0=Building in: %s\n
|
||||
StandardBuildConfiguration_1=Build complete: %s\n
|
||||
StandardBuildConfiguration_1=Build complete (%d errors, %d warnings): %s\n
|
||||
StandardBuildConfiguration_CommandNotFound=Error: build command '%s' not found
|
||||
CBuildConfiguration_CreateJob=Create Build Folder
|
||||
CBuildConfiguration_Location=line %d, external location: %s
|
||||
|
|
Loading…
Add table
Reference in a new issue