summaryrefslogtreecommitdiff
path: root/java/java.go
diff options
context:
space:
mode:
author mrziwang <mrziwang@google.com> 2024-07-10 12:18:06 -0700
committer mrziwang <mrziwang@google.com> 2024-07-10 12:18:06 -0700
commit9f7b9f4a9ab77d1816e8ae30ac8339e335fb7e92 (patch)
tree8e2e1349972ca87ad4c5230b7fbad0cd3258d075 /java/java.go
parent8dfc2bf163a306a2256798b86c3df91ca6880a8b (diff)
Use OutputFilesProvider on java modules
In the context of incremental soong, the output files inter-module-communication will be through OutputFilesProvider. The OutputFileProducer interface will be deprecated. Test: CI Bug: 339477385 Change-Id: I3c9f0b766325dd490bc903dc65259c3953d34606
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 e4abbcd28..5fdb4b871 100644
--- a/java/java.go
+++ b/java/java.go
@@ -977,6 +977,8 @@ func (j *Library) GenerateAndroidBuildActions(ctx android.ModuleContext) {
TestOnly: Bool(j.sourceProperties.Test_only),
TopLevelTarget: j.sourceProperties.Top_level_test_target,
})
+
+ setOutputFiles(ctx, j.Module)
}
func (j *Library) setInstallRules(ctx android.ModuleContext, installModuleName string) {
@@ -1836,6 +1838,8 @@ func (j *Binary) GenerateAndroidBuildActions(ctx android.ModuleContext) {
// libraries. This is verified by TestBinary.
j.binaryFile = ctx.InstallExecutable(android.PathForModuleInstall(ctx, "bin"),
ctx.ModuleName()+ext, j.wrapperFile)
+
+ setOutputFiles(ctx, j.Library.Module)
}
}