void () { final String file = createFile("a/a.txt"); final JpsArtifact a = addArtifact(root().parentDirCopy(file)); buildAll(); assertOutput(a, fs().file("a.txt")); rename(file, "b.txt"); buildAll(); assertOutput(a, fs().file("b.txt")); }