void () { String file = createFile("dir/a.txt"); JpsArtifact a = addArtifact("a", archive("a.jar").parentDirCopy(file)); buildAll(); assertOutput(a, fs().archive("a.jar").file("a.txt")); createFile("dir/b.txt"); buildAll(); assertOutput(a, fs().archive("a.jar").file("a.txt").file("b.txt")); assertCopied("dir/a.txt", "dir/b.txt"); buildAllAndAssertUpToDate(); }