Merge "syntax check to jacoco filters for any build" am: 0589914135
am: 6b968b9531
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/1706576 Change-Id: Iaceecc8c587231aa3bed8b7f661c1ebfc2abc8df
This commit is contained in:
commit
f2f04e4160
12
java/base.go
12
java/base.go
|
@ -1177,8 +1177,14 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
|
|||
j.properties.Instrument = true
|
||||
}
|
||||
|
||||
// enforce syntax check to jacoco filters for any build (http://b/183622051)
|
||||
specs := j.jacocoModuleToZipCommand(ctx)
|
||||
if ctx.Failed() {
|
||||
return
|
||||
}
|
||||
|
||||
if j.shouldInstrument(ctx) {
|
||||
outputFile = j.instrument(ctx, flags, outputFile, jarName)
|
||||
outputFile = j.instrument(ctx, flags, outputFile, jarName, specs)
|
||||
}
|
||||
|
||||
// merge implementation jar with resources if necessary
|
||||
|
@ -1390,9 +1396,7 @@ func (j *Module) compileJavaHeader(ctx android.ModuleContext, srcFiles, srcJars
|
|||
}
|
||||
|
||||
func (j *Module) instrument(ctx android.ModuleContext, flags javaBuilderFlags,
|
||||
classesJar android.Path, jarName string) android.OutputPath {
|
||||
|
||||
specs := j.jacocoModuleToZipCommand(ctx)
|
||||
classesJar android.Path, jarName string, specs string) android.OutputPath {
|
||||
|
||||
jacocoReportClassesFile := android.PathForModuleOut(ctx, "jacoco-report-classes", jarName)
|
||||
instrumentedJar := android.PathForModuleOut(ctx, "jacoco", jarName).OutputPath
|
||||
|
|
Loading…
Reference in New Issue