Add support for lint baseline files
Test: m droid Test: go test ^TestJavaLint # (from soong/build/java) Change-Id: I249a0a0597b0bf8495460ed283b476ad2eb36edc
This commit is contained in:
@@ -582,7 +582,7 @@ func expandOneSrcPath(ctx ModuleWithDepsPathContext, sPath string, expandedExclu
|
||||
p := pathForModuleSrc(ctx, sPath)
|
||||
if exists, _, err := ctx.Config().fs.Exists(p.String()); err != nil {
|
||||
ReportPathErrorf(ctx, "%s: %s", p, err.Error())
|
||||
} else if !exists && !ctx.Config().testAllowNonExistentPaths {
|
||||
} else if !exists && !ctx.Config().TestAllowNonExistentPaths {
|
||||
ReportPathErrorf(ctx, "module source path %q does not exist", p)
|
||||
}
|
||||
|
||||
@@ -1018,7 +1018,7 @@ func PathForSource(ctx PathContext, pathComponents ...string) SourcePath {
|
||||
}
|
||||
} else if exists, _, err := ctx.Config().fs.Exists(path.String()); err != nil {
|
||||
ReportPathErrorf(ctx, "%s: %s", path, err.Error())
|
||||
} else if !exists && !ctx.Config().testAllowNonExistentPaths {
|
||||
} else if !exists && !ctx.Config().TestAllowNonExistentPaths {
|
||||
ReportPathErrorf(ctx, "source path %q does not exist", path)
|
||||
}
|
||||
return path
|
||||
|
Reference in New Issue
Block a user