mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug # 223832 : Clean with internal builder ignores success of clean command
This commit is contained in:
parent
4ea32ecc49
commit
8d88fb418e
1 changed files with 12 additions and 3 deletions
|
@ -1643,9 +1643,18 @@ public class CommonBuilder extends ACBuilder {
|
|||
consoleOutStream.write(buf.toString().getBytes());
|
||||
consoleOutStream.flush();
|
||||
buf = new StringBuffer();
|
||||
|
||||
sBuilder.build(consoleOutStream, consoleOutStream, monitor);
|
||||
|
||||
int result = sBuilder.build(consoleOutStream, consoleOutStream, monitor);
|
||||
//Throw a core exception indicating that the clean command failed
|
||||
if(result == StepBuilder.STATUS_ERROR_LAUNCH)
|
||||
{
|
||||
try
|
||||
{
|
||||
consoleOutStream.close();
|
||||
}
|
||||
catch(IOException e){}
|
||||
Status status = new Status(Status.INFO, ManagedBuilderCorePlugin.getUniqueIdentifier(), "Failed to exec delete command");//$NON-NLS-1
|
||||
throw new CoreException(status);
|
||||
}
|
||||
// Report a successful clean
|
||||
String successMsg = ManagedMakeMessages.getFormattedString(BUILD_FINISHED, curProject.getName());
|
||||
buf.append(successMsg);
|
||||
|
|
Loading…
Add table
Reference in a new issue