Exclude jacocoagent from boot jars package check am: 7f8721618c
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1739993 Change-Id: I83ba8899b202dd89ee613543eead69ab1f88ac4c
This commit is contained in:
@@ -37,7 +37,7 @@ func buildRuleForBootJarsPackageCheck(ctx android.ModuleContext, bootDexJarByMod
|
|||||||
rule.Command().BuiltTool("check_boot_jars").
|
rule.Command().BuiltTool("check_boot_jars").
|
||||||
Input(ctx.Config().HostToolPath(ctx, "dexdump")).
|
Input(ctx.Config().HostToolPath(ctx, "dexdump")).
|
||||||
Input(android.PathForSource(ctx, "build/soong/scripts/check_boot_jars/package_allowed_list.txt")).
|
Input(android.PathForSource(ctx, "build/soong/scripts/check_boot_jars/package_allowed_list.txt")).
|
||||||
Inputs(bootDexJarByModule.bootDexJars()).
|
Inputs(bootDexJarByModule.bootDexJarsWithoutCoverage()).
|
||||||
Text("&& touch").Output(timestamp)
|
Text("&& touch").Output(timestamp)
|
||||||
rule.Build("boot_jars_package_check", "check boot jar packages")
|
rule.Build("boot_jars_package_check", "check boot jar packages")
|
||||||
|
|
||||||
|
@@ -589,6 +589,19 @@ func (b bootDexJarByModule) bootDexJars() android.Paths {
|
|||||||
return paths
|
return paths
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// bootDexJarsWithoutCoverage returns the boot dex jar paths sorted by their keys without coverage
|
||||||
|
// libraries if present.
|
||||||
|
func (b bootDexJarByModule) bootDexJarsWithoutCoverage() android.Paths {
|
||||||
|
paths := android.Paths{}
|
||||||
|
for _, k := range android.SortedStringKeys(b) {
|
||||||
|
if k == "jacocoagent" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
paths = append(paths, b[k])
|
||||||
|
}
|
||||||
|
return paths
|
||||||
|
}
|
||||||
|
|
||||||
// HiddenAPIOutput encapsulates the output from the hidden API processing.
|
// HiddenAPIOutput encapsulates the output from the hidden API processing.
|
||||||
type HiddenAPIOutput struct {
|
type HiddenAPIOutput struct {
|
||||||
HiddenAPIFlagOutput
|
HiddenAPIFlagOutput
|
||||||
|
Reference in New Issue
Block a user