void () { final String file = createFile("a/a.txt", "a"); JpsArtifact a = addArtifact(root() .archive("x.jar") .fileCopy(file)); var createdJar = "out/artifacts/a/x.jar"; buildAll(); assertOutput(a, fs().file("x.jar")); deleteFile(createdJar); assertOutput(a, fs()); buildAll(); assertOutput(a, fs().file("x.jar")); }