Merge "Support passing lint baseline to doclava" into main am: ddbfdb7f7e
am: dc99bafb1d
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2769206 Change-Id: Icaa3a09d152ae1e840df31401107b24a3686b0a1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
88cf24b098
1 changed files with 7 additions and 0 deletions
|
@ -136,6 +136,9 @@ type DroiddocProperties struct {
|
|||
// At some point, this might be improved to show more warnings.
|
||||
Todo_file *string `android:"path"`
|
||||
|
||||
// A file containing a baseline for allowed lint errors.
|
||||
Lint_baseline *string `android:"path"`
|
||||
|
||||
// directory under current module source that provide additional resources (images).
|
||||
Resourcesdir *string
|
||||
|
||||
|
@ -665,6 +668,10 @@ func (d *Droiddoc) doclavaDocsFlags(ctx android.ModuleContext, cmd *android.Rule
|
|||
ImplicitOutput(android.PathForModuleOut(ctx, String(d.properties.Todo_file)))
|
||||
}
|
||||
|
||||
if String(d.properties.Lint_baseline) != "" {
|
||||
cmd.FlagWithInput("-lintbaseline ", android.PathForModuleSrc(ctx, String(d.properties.Lint_baseline)))
|
||||
}
|
||||
|
||||
if String(d.properties.Resourcesdir) != "" {
|
||||
// TODO: should we add files under resourcesDir to the implicits? It seems that
|
||||
// resourcesDir is one sub dir of htmlDir
|
||||
|
|
Loading…
Reference in a new issue