Created by: davido
Rule can be provided from different cell and thus output file name must be rellocated according to cell root. Otherwise classpath would contain non existent entries from foreign project file system.
TEST PLAN:
-
Clone JGit with this patch: [1].
-
Clone Gerrit Code Review with this patch: [2].
-
Replace JGit cell during Gerrit build, with:
$ buck build --config repositories.jgit=../jgit gerrit
Observe, that without this diff, the classpath contains invalid entries: non rellocated jgit output file. This diff rellocates it to jgit cell.
[1] https://git.eclipse.org/r/61938 [2] https://gerrit-review.googlesource.com/73000