void () { VirtualFile a = createFile("src/A.java", "class A{}"); createFile("src/res.properties", "aaa=bbb"); Module module = addModule("a", a.getParent()); make(module); assertOutput(module, fs().file("A.class").file("res.properties")); final VirtualFile output = LocalFileSystem.getInstance().refreshAndFindFileByIoFile(getOutputDir(module)); assertNotNull(output); final VirtualFile classFile = output.findChild("A.class"); assertNotNull(classFile); final VirtualFile resOutputFile = output.findChild("res.properties"); assertNotNull(resOutputFile); final File resourceOutputIoFile = new File(resOutputFile.getPath()); final long resStampBefore = resourceOutputIoFile.lastModified(); deleteFile(classFile); make(module); assertOutput(module, fs().file("res.properties")); compile(true, a); assertOutput(module, fs().file("A.class").file("res.properties")); final long resStampAfter = resourceOutputIoFile.lastModified(); assertEquals(resStampBefore, resStampAfter); assertModulesUpToDate(); }