[JPS build] fix check for non-existing output roots on Windows

'storedNonExistentOutputs' stores system-independent paths so we need to convert slashes to '/' in nonexistentOutputRoots as well, otherwise 'containsAll' check won't work properly (PATH_HASHING_STRATEGY handles case sensitivity only, it doesn't convert file separators), the method may incorrectly return 'true' causing full rebuild of the corresponding target.

This fixes GwtBuilderTest on Windows.

GitOrigin-RevId: d07aa1cc66d91c67bc54e01dbc201c9115ac51d7
This commit is contained in:
Nikolay Chashnikov
2020-05-01 09:40:21 +00:00
committed by intellij-monorepo-bot
parent 501ae3a4dd
commit 066d0d9752
@@ -185,7 +185,7 @@ public class BuildTargetConfiguration {
}
}
if (wasDeleted) {
nonexistentOutputRoots.add(outputRoot.getAbsolutePath());
nonexistentOutputRoots.add(FileUtil.toSystemIndependentName(outputRoot.getAbsolutePath()));
}
}
}