Make sure that classpath fragment contents appear in make vars.
The source of truth for what jars are in BOOTCLASSPATH and SYSTEMSERVERCLASSPATH is make; adding a classpath fragment in soong with a new jar in the contents without having it declared in make is wrong (excluding test apexes). Bug: 191369843 Test: m nothing Change-Id: Ifd313776ee7ad206031244534ed3870126e4f835
This commit is contained in:
@@ -1671,8 +1671,9 @@ func (l *ConfiguredJarList) RemoveList(list ConfiguredJarList) ConfiguredJarList
|
||||
return ConfiguredJarList{apexes, jars}
|
||||
}
|
||||
|
||||
// Filter keeps the entries if a jar appears in the given list of jars to keep; returns a new list.
|
||||
func (l *ConfiguredJarList) Filter(jarsToKeep []string) ConfiguredJarList {
|
||||
// Filter keeps the entries if a jar appears in the given list of jars to keep. Returns a new list
|
||||
// and any remaining jars that are not on this list.
|
||||
func (l *ConfiguredJarList) Filter(jarsToKeep []string) (ConfiguredJarList, []string) {
|
||||
var apexes []string
|
||||
var jars []string
|
||||
|
||||
@@ -1683,7 +1684,7 @@ func (l *ConfiguredJarList) Filter(jarsToKeep []string) ConfiguredJarList {
|
||||
}
|
||||
}
|
||||
|
||||
return ConfiguredJarList{apexes, jars}
|
||||
return ConfiguredJarList{apexes, jars}, RemoveListFromList(jarsToKeep, jars)
|
||||
}
|
||||
|
||||
// CopyOfJars returns a copy of the list of strings containing jar module name
|
||||
|
Reference in New Issue
Block a user