external compiler: fixed building artifacts if there were changes under source roots only

This commit is contained in:
nik
2012-07-25 20:21:57 +04:00
parent dbeee4f6ff
commit 279163cd2b
@@ -180,7 +180,9 @@ final class BuildSession implements Runnable, CanceledStatus {
try {
final boolean shouldApplyEvent = loadFsState(fsState, dataStorageRoot, myInitialFSDelta);
if (shouldApplyEvent && buildType == BuildType.MAKE && !containsChanges(myInitialFSDelta) && !fsState.hasWorkToDo()) {
if (shouldApplyEvent && buildType == BuildType.MAKE && !containsChanges(myInitialFSDelta) && !fsState.hasWorkToDo()
&& artifacts.isEmpty()//todo[nik] currently changes in artifacts source files aren't registered in the delta
) {
applyFSEvent(null, myInitialFSDelta);
return;
}