// 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();
}
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 {