diff options
author | 2021-02-01 13:59:03 -0800 | |
---|---|---|
committer | 2021-02-09 15:36:25 -0800 | |
commit | dcf71b299ca9c85a31f9b895d8e8529d03cd7e04 (patch) | |
tree | 9010ad5f799f7df0589c824310d1e33720ca56ed /java/system_modules.go | |
parent | a6cfcac7279755c76ab742f21e29f0ab3de2c7ea (diff) |
Convert java.Dependency to JavaInfo provider
Export information about java dependencies through a Provider
instead of accessing the module directly.
Test: java_test.go
Test: no changes to build.ninja
Change-Id: Ifc5d566bf6f6ebc0ad399e948effaa1ef6a22876
Diffstat (limited to 'java/system_modules.go')
-rw-r--r-- | java/system_modules.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/system_modules.go b/java/system_modules.go index 5cc546d2e..95f71b80f 100644 --- a/java/system_modules.go +++ b/java/system_modules.go @@ -160,8 +160,8 @@ func (system *SystemModules) GenerateAndroidBuildActions(ctx android.ModuleConte var jars android.Paths ctx.VisitDirectDepsWithTag(systemModulesLibsTag, func(module android.Module) { - dep, _ := module.(Dependency) - jars = append(jars, dep.HeaderJars()...) + dep, _ := ctx.OtherModuleProvider(module, JavaInfoProvider).(JavaInfo) + jars = append(jars, dep.HeaderJars...) }) system.headerJars = jars |