diff options
Diffstat (limited to 'java/droidstubs.go')
-rw-r--r-- | java/droidstubs.go | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/java/droidstubs.go b/java/droidstubs.go index 4791a6126..24dabdb36 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -1431,6 +1431,16 @@ func (d *Droidstubs) GenerateAndroidBuildActions(ctx android.ModuleContext) { d.setOutputFiles(ctx) d.setPhonyRules(ctx) + + if d.apiLintTimestamp != nil { + if d.apiLintReport != nil { + ctx.DistForGoalsWithFilename( + []string{fmt.Sprintf("%s-api-lint", d.Name()), "droidcore"}, + d.apiLintReport, + fmt.Sprintf("apilint/%s-lint-report.txt", d.Name()), + ) + } + } } func setDroidInfo(ctx android.ModuleContext, d *Droidstubs, info *StubsInfo, typ StubsType) { @@ -1526,18 +1536,6 @@ var ( } ) -func (d *Droidstubs) MakeVars(ctx android.MakeVarsModuleContext) { - if d.apiLintTimestamp != nil { - if d.apiLintReport != nil { - ctx.DistForGoalsWithFilename( - []string{fmt.Sprintf("%s-api-lint", d.Name()), "droidcore"}, - d.apiLintReport, - fmt.Sprintf("apilint/%s-lint-report.txt", d.Name()), - ) - } - } -} - func StubsDefaultsFactory() android.Module { module := &DocDefaults{} |