1
0
Fork 0
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:
Oleg Krasilnikov 2008-05-03 09:32:27 +00:00
parent 4ea32ecc49
commit 8d88fb418e

View file

@ -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);