Ignore owner property when computing java_sdk_library dist subdirectory
The owner property is no longer used, the dist subdirectory is determined by the dist_group property. Bug: 186723288 Test: TestJavaSdkLibraryDist Change-Id: Id6d997eef05f6511070677974219674f248cb754
This commit is contained in:
@@ -1233,14 +1233,7 @@ func (module *SdkLibrary) distStem() string {
|
||||
|
||||
// distGroup returns the subdirectory of the dist path of the stub artifacts.
|
||||
func (module *SdkLibrary) distGroup() string {
|
||||
if group := proptools.String(module.sdkLibraryProperties.Dist_group); group != "" {
|
||||
return group
|
||||
}
|
||||
// TODO(b/186723288): Remove this once everything uses dist_group.
|
||||
if owner := module.ModuleBase.Owner(); owner != "" {
|
||||
return owner
|
||||
}
|
||||
return "unknown"
|
||||
return proptools.StringDefault(module.sdkLibraryProperties.Dist_group, "unknown")
|
||||
}
|
||||
|
||||
func (module *SdkLibrary) latestApiFilegroupName(apiScope *apiScope) string {
|
||||
|
Reference in New Issue
Block a user