void () { JpsModule m = addModule("m"); String resDir = PathUtil.getParentPath(createFile("res/a.txt")); m.getContentRootsList().addUrl(JpsPathUtil.pathToUrl(resDir)); JpsArtifact a = addArtifact(root().dirCopy(resDir)); a.setOutputPath(resDir); buildArtifacts(a); assertOutput(a, fs().file("a.txt")); createFile("res/b.txt"); rebuildAllModulesAndArtifacts(); assertOutput(a, fs().file("a.txt").file("b.txt")); }