Filter srcjars out of srcFiles
srcFiles is passed to Lint, and given it both the srcjars and the expanded sources from the srcjars confuses it about which files are generated. Remove srcjars from srcFiles after handling them. Bug: 192245952 Test: m lint-check Change-Id: Ic57d1c623f4cac7cd79f1342bac4b51bd2535ac3
This commit is contained in:
@@ -870,6 +870,7 @@ func (j *Module) compile(ctx android.ModuleContext, aaptSrcJar android.Path) {
|
||||
if aaptSrcJar != nil {
|
||||
srcJars = append(srcJars, aaptSrcJar)
|
||||
}
|
||||
srcFiles = srcFiles.FilterOutByExt(".srcjar")
|
||||
|
||||
if j.properties.Jarjar_rules != nil {
|
||||
j.expandJarjarRules = android.PathForModuleSrc(ctx, *j.properties.Jarjar_rules)
|
||||
|
Reference in New Issue
Block a user