@CacheableTask
public class ExtractAnnotations
extends com.android.build.gradle.internal.tasks.NonIncrementalTask
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 |
doTaskAction() |
org.gradle.api.file.FileCollection |
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(org.gradle.api.file.FileCollection 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, recordTaskAction, setVariantNamenewInputDirectory, newInputFile, newOutputDirectory, newOutputFileappendParallelSafeAction, 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 @PathSensitive(value=NONE) public org.gradle.api.file.FileCollection getBootClasspath()
public void setBootClasspath(org.gradle.api.file.FileCollection 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 doTaskAction()
doTaskAction in class com.android.build.gradle.internal.tasks.NonIncrementalTask@Input public boolean hasAndroidAnnotations()