void () { String oldPatterns = FileTypeManager.getInstance().getIgnoredFilesList(); try { VirtualFile src = createFile("src/A.java", "class A{}").getParent(); createFile("src/Ignored.java", "class Ignored{}"); createFile("src/IgnoredDir/B.java", "package IgnoredDir; class B{}"); createFile("src/IgnoredDir/p/C.java", "package IgnoredDir.p; class C{}"); Module m = addModule("m", src); make(m); assertModulesUpToDate(); TestFileSystemBuilder all = fs().file("A.class").file("Ignored.class").dir("IgnoredDir").file("B.class").dir("p").file("C.class"); assertOutput(m, all); setIgnoredFiles(oldPatterns + ";Ignored*"); make(m); assertOutput(m, fs().file("A.class")); setIgnoredFiles(oldPatterns); make(m); assertOutput(m, all); } finally { setIgnoredFiles(oldPatterns); } }