@CacheableTask
public abstract class ExtractAnnotations
extends com.android.build.gradle.internal.tasks.NonIncrementalTask
getOutput()) 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
|
org.gradle.api.file.FileCollection |
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
|
abstract org.gradle.api.file.RegularFileProperty |
getOutput()
The output .zip file to write the annotations database to, if any
|
org.gradle.api.file.FileTree |
getSource() |
abstract org.gradle.api.file.RegularFileProperty |
getTypedefFile()
The output .txt file to write the typedef recipe file to.
|
boolean |
hasAndroidAnnotations() |
void |
setBootClasspath(org.gradle.api.file.FileCollection bootClasspath) |
void |
setClassDir(org.gradle.api.file.FileCollection classDir) |
void |
setEncoding(java.lang.String encoding) |
void |
source(java.lang.Object source)
Used by the variant API
|
getProjectName, getVariantName, getWorkerExecutor, getWorkerFacadeWithThreads, getWorkerFacadeWithWorkers, 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 @PathSensitive(value=RELATIVE) 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 abstract org.gradle.api.file.RegularFileProperty getOutput()
@OutputFile public abstract org.gradle.api.file.RegularFileProperty 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 org.gradle.api.file.FileCollection getClassDir()
public void setClassDir(org.gradle.api.file.FileCollection classDir)
protected void doTaskAction()
doTaskAction in class com.android.build.gradle.internal.tasks.NonIncrementalTask@Input public boolean hasAndroidAnnotations()