summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
authorMartin Stjernholm <mast@google.com>2021-07-12 09:01:43 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2021-07-12 09:01:43 +0000
commit8410eb1551742844c967e3a563c606566d8a9c37 (patch)
tree52913a925d28a09ab39ee8967b420329b5cb42d5 /java/java.go
parentd507060257e5792fe2d45284c3b5498907ca3a8e (diff)
parent95994067b121aa8ae36aabf49bf3f7c6e4b64045 (diff)
Merge "Do not allow duplicate deapexer dependencies." into sc-dev
Diffstat (limited to 'java/java.go')
-rw-r--r--java/java.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/java.go b/java/java.go
index 71c1b3324..ca63782ed 100644
--- a/java/java.go
+++ b/java/java.go
@@ -1283,6 +1283,10 @@ func (j *Import) GenerateAndroidBuildActions(ctx android.ModuleContext) {
// Save away the `deapexer` module on which this depends, if any.
if tag == android.DeapexerTag {
+ if deapexerModule != nil {
+ ctx.ModuleErrorf("Ambiguous duplicate deapexer module dependencies %q and %q",
+ deapexerModule.Name(), module.Name())
+ }
deapexerModule = module
}
})