diff options
author | Paul Duffin <paulduffin@google.com> | 2020-06-02 13:16:35 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2020-06-02 13:16:35 +0000 |
commit | d08b1040cb42945151cc672ec5c30005e2dde715 (patch) | |
tree | 9c445abd01896f429dbe121d2b70e2dfaec87c2a /java/java.go | |
parent | dedcd7a8cc92ef21d129fe1a96c540280e7e5c1f (diff) | |
parent | 91206d9ed1a1e3cb81d1ace021580c4be8362f1f (diff) |
Always run package check am: 91206d9ed1
Original change: undetermined
Change-Id: I0adc92199f39a0f94b377fba89faa30cd8af43d7
Diffstat (limited to 'java/java.go')
-rw-r--r-- | java/java.go | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/java/java.go b/java/java.go index 76bfa86d6..09df2ad43 100644 --- a/java/java.go +++ b/java/java.go @@ -463,9 +463,6 @@ type Module struct { // expanded Jarjar_rules expandJarjarRules android.Path - // list of additional targets for checkbuild - additionalCheckedModules android.Paths - // Extra files generated by the module type to be added as java resources. extraResources android.Paths @@ -1521,10 +1518,10 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) { // Check package restrictions if necessary. if len(j.properties.Permitted_packages) > 0 { - // Check packages and copy to package-checked file. - pkgckFile := android.PathForModuleOut(ctx, "package-check.stamp") - CheckJarPackages(ctx, pkgckFile, outputFile, j.properties.Permitted_packages) - j.additionalCheckedModules = append(j.additionalCheckedModules, pkgckFile) + // Check packages and copy input to package-checked file. + // Use the file copied after a successful package check as the output file for this + // module so that any dependencies on this module will trigger the package check. + outputFile = CheckJarPackages(ctx, outputFile, j.properties.Permitted_packages) if ctx.Failed() { return |