1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-27 19:05:38 +02:00

Build Model and Internal Builder fixes and enhancements

This commit is contained in:
Mikhail Sennikovsky 2006-04-18 21:51:06 +00:00
parent 3343177fca
commit aaae022798
2 changed files with 6 additions and 2 deletions

View file

@ -248,7 +248,7 @@ public class BuildStep implements IBuildStep {
step = fBuildDescription.getConfiguration().getPostbuildStep();
}
if(step != null){
if(step != null && (step = step.trim()).length() > 0){
String commands[] = step.split(";"); //$NON-NLS-1$
if(cwd == null)
cwd = calcCWD();

View file

@ -92,8 +92,9 @@ public class StepBuilder implements IBuildModelBuilder {
break;
}
}
status = postProcess(status, monitor);
}
return postProcess(status, monitor);
return status;
}
protected int postProcess(int status, IProgressMonitor monitor){
@ -138,6 +139,9 @@ public class StepBuilder implements IBuildModelBuilder {
}
protected void cleanOutputs(IProgressMonitor monitor){
if(fStep == fStep.getBuildDescription().getInputStep())
return;
IBuildResource bRcs[] = fStep.getOutputResources();
for(int i = 0; i < bRcs.length; i++){
IResource rc = BuildDescriptionManager.findResourceForBuildResource(bRcs[i]);