diff options
author | 2021-03-04 09:56:15 -0800 | |
---|---|---|
committer | 2021-03-04 09:56:15 -0800 | |
commit | 84f3dc1c9d2dd049e796000b329f21cf510b0990 (patch) | |
tree | a5a96e5bcc33587836607d6df0e4606dacb136ad /java/lint.go | |
parent | f8dcf5ead2046a8bf2cab479611c0ccb93ff5b89 (diff) |
Use repackaged lint binary
Lint references lint-classpath.jar, which does not contain any classes
by has a manifest that points to other jars for the classpath. This
breaks dependency tracking during the build. Use a lint tool that
is repackaged into a single jar.
Bug: 181681346
Test: m lint-check
Change-Id: I07d2b7404c18626e03c5af3ef5a75dd7f899cb0e
Diffstat (limited to 'java/lint.go')
-rw-r--r-- | java/lint.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/java/lint.go b/java/lint.go index 827259573..af83664c6 100644 --- a/java/lint.go +++ b/java/lint.go @@ -329,8 +329,7 @@ func (l *linter) lint(ctx android.ModuleContext) { FlagWithArg("ANDROID_SDK_HOME=", homeDir.String()). FlagWithInput("SDK_ANNOTATIONS=", annotationsZipPath). FlagWithInput("LINT_OPTS=-DLINT_API_DATABASE=", apiVersionsXMLPath). - Tool(android.PathForSource(ctx, "prebuilts/cmdline-tools/tools/bin/lint")). - Implicit(android.PathForSource(ctx, "prebuilts/cmdline-tools/tools/lib/lint-classpath.jar")). + BuiltTool("lint"). Flag("--quiet"). FlagWithInput("--project ", projectXML). FlagWithInput("--config ", lintXML). |