@CacheableTask
public class ExtractAnnotations
extends com.android.build.gradle.internal.tasks.AndroidVariantTask
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.CreationAction |
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.
|
org.gradle.api.file.FileCollection |
getClasspath() |
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) |
void |
source(java.lang.Object source)
Used by the variant API
|
getVariantName, setVariantName
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, 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 public org.gradle.api.file.FileTree getSource()
@CompileClasspath @PathSensitive(value=NONE) public org.gradle.api.file.FileCollection getClasspath()
public void source(java.lang.Object source)
@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()
@Input public boolean hasAndroidAnnotations()