void () { VirtualFile a = createFile("src/a/A.java", "package a; class A{}"); createFile("src/b/B.java", "package b; class B{}"); Module m = addModule("m", a.getParent().getParent()); make(m); assertModulesUpToDate(); assertOutput(m, fs().dir("a").file("A.class").end().dir("b").file("B.class")); PsiTestUtil.addExcludedRoot(m, a.getParent()); make(m); assertOutput(m, fs().dir("b").file("B.class")); PsiTestUtil.removeExcludedRoot(m, a.getParent()); make(m); assertOutput(m, fs().dir("a").file("A.class").end().dir("b").file("B.class")); }