Merge "Make copyBootJarsToPredefinedLocations simpler and less fragile" am: cc1bd8364a
am: 174d9c7eec
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1731414 Change-Id: I76746fa8b13b7b4632638ba211199d4d7b0d48d4
This commit is contained in:
@@ -1690,6 +1690,16 @@ func (l *ConfiguredJarList) BuildPaths(ctx PathContext, dir OutputPath) Writable
|
||||
return paths
|
||||
}
|
||||
|
||||
// BuildPathsByModule returns a map from module name to build paths based on the given directory
|
||||
// prefix.
|
||||
func (l *ConfiguredJarList) BuildPathsByModule(ctx PathContext, dir OutputPath) map[string]WritablePath {
|
||||
paths := map[string]WritablePath{}
|
||||
for _, jar := range l.jars {
|
||||
paths[jar] = dir.Join(ctx, ModuleStem(jar)+".jar")
|
||||
}
|
||||
return paths
|
||||
}
|
||||
|
||||
// UnmarshalJSON converts JSON configuration from raw bytes into a
|
||||
// ConfiguredJarList structure.
|
||||
func (l *ConfiguredJarList) UnmarshalJSON(b []byte) error {
|
||||
|
Reference in New Issue
Block a user