diff options
Diffstat (limited to 'src/tools/ak/rjar/rjar.go')
-rw-r--r-- | src/tools/ak/rjar/rjar.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/ak/rjar/rjar.go b/src/tools/ak/rjar/rjar.go index c95dea8..fca8c76 100644 --- a/src/tools/ak/rjar/rjar.go +++ b/src/tools/ak/rjar/rjar.go @@ -240,6 +240,11 @@ func compileRJar(srcs []string, rjar, jdk, jartool string, targetLabel string) e "--output", rjar, }...) if len(targetLabel) > 0 { + // Deal with "@//"-prefixed labels (in Bazel) + if strings.HasPrefix(targetLabel, "@//") { + targetLabel = strings.Replace(targetLabel, "@//", "//", 1) + } + args = append(args, []string{ "--target_label", targetLabel, }...) |