Browse Source

243376: do less resource copying. All on full build then non on incremental

tags/V162DEV_M1
aclement 16 years ago
parent
commit
1cde153557

+ 6
- 1
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java View File

@@ -341,7 +341,12 @@ public class AjBuildManager implements IOutputClassFileNameProvider,IBinarySourc
// have to tell state we succeeded or next is not incremental
state.successfulCompile(buildConfig,batch);

copyResourcesToDestination();
// For a full compile, copy resources to the destination
// - they should not get deleted on incremental and AJDT
// will handle changes to them that require a recopying
if (batch) {
copyResourcesToDestination();
}
if (buildConfig.getOutxmlName() != null) {
writeOutxmlFile();

+ 5
- 1
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjState.java View File

@@ -761,7 +761,11 @@ public class AjState {
}
deleteClassFiles();
deleteResources();
// Do not delete resources on incremental build, AJDT will handle
// copying updates to the output folder. AspectJ only does a copy
// of them on full build (see copyResourcesToDestination() call
// in AjBuildManager)
// deleteResources();
addAffectedSourceFiles(thisTime,thisTime);
} else {

Loading…
Cancel
Save