void () { final VirtualFile file1 = createFile("src1/A.java", "public class A {}"); final Module module1 = addModule("module1", file1.getParent()); final VirtualFile file2 = createFile("src2/B.java", "public class B {}"); final Module module2 = addModule("module2", file2.getParent()); final Artifact artifact = addArtifact(root().module(module1)); make(module1); assertNoOutput(artifact); setBuildOnMake(artifact); make(module2); assertNoOutput(artifact); make(module1); assertOutput(artifact, fs().file("A.class")); }