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:
parent
3343177fca
commit
aaae022798
2 changed files with 6 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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]);
|
||||
|
|
Loading…
Add table
Reference in a new issue