@CacheableTask
public class ExtractAnnotations
extends com.android.build.gradle.internal.tasks.AbstractAndroidCompile
output) which
records the annotations in a zipped XML format for use by the IDE and by lint to associate
the (source retention) annotations back with the compiled code
| Modifier and Type | Class and Description |
|---|---|
static class |
ExtractAnnotations.ConfigAction |
| Constructor and Description |
|---|
ExtractAnnotations() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
compile() |
java.util.List<java.lang.String> |
getBootClasspath()
Boot classpath: typically android.jar
|
com.android.build.api.artifact.BuildableArtifact |
getClassDir()
Location of class files.
|
java.lang.String |
getEncoding()
The encoding to use when reading source files.
|
org.gradle.api.file.FileCollection |
getLibraries() |
org.gradle.api.file.FileCollection |
getLintClassPath()
Lint classpath
|
java.io.File |
getOutput()
The output .zip file to write the annotations database to, if any
|
org.gradle.api.file.FileTree |
getSource() |
java.io.File |
getTypedefFile()
The output .txt file to write the typedef recipe file to.
|
boolean |
hasAndroidAnnotations() |
void |
setBootClasspath(java.util.function.Supplier<java.util.List<java.lang.String>> bootClasspath) |
void |
setClassDir(com.android.build.api.artifact.BuildableArtifact classDir) |
void |
setEncoding(java.lang.String encoding) |
void |
setOutput(java.io.File output) |
getClasspath, getDestinationDir, getSourceCompatibility, getTargetCompatibility, setClasspath, setDestinationDir, setDestinationDir, setSourceCompatibility, setTargetCompatibilityexclude, exclude, exclude, exclude, getExcludes, getIncludes, getPatternSetFactory, include, include, include, include, setExcludes, setIncludes, setSource, setSource, sourceconventionMapping, conventionMapping, getConventionMappingnewInputDirectory, newInputFile, newOutputDirectory, newOutputFileaddValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doFirst, doLast, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString@InputFiles @Nullable public org.gradle.api.file.FileCollection getLintClassPath()
@NonNull @PathSensitive(value=NAME_ONLY) @InputFiles @SkipWhenEmpty public org.gradle.api.file.FileTree getSource()
getSource in class org.gradle.api.tasks.SourceTask@CompileClasspath public java.util.List<java.lang.String> getBootClasspath()
public void setBootClasspath(java.util.function.Supplier<java.util.List<java.lang.String>> bootClasspath)
@CompileClasspath public org.gradle.api.file.FileCollection getLibraries()
@OutputFile public java.io.File getOutput()
public void setOutput(java.io.File output)
@OutputFile public java.io.File getTypedefFile()
ExtractAnnotations task and consumed by the TypedefRemover.@NonNull @Input public java.lang.String getEncoding()
public void setEncoding(java.lang.String encoding)
@Optional @InputFiles @PathSensitive(value=RELATIVE) public com.android.build.api.artifact.BuildableArtifact getClassDir()
public void setClassDir(com.android.build.api.artifact.BuildableArtifact classDir)
protected void compile()
compile in class org.gradle.api.tasks.compile.AbstractCompile@Input public boolean hasAndroidAnnotations()