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 c8f798a9b..caad6883e 100644 --- a/java/droidstubs.go +++ b/java/droidstubs.go @@ -1429,6 +1429,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) { @@ -1524,18 +1534,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{} |