com.android.build.gradle.tasks
[Groovy] Class ExtractAnnotations

java.lang.Object
  org.gradle.api.tasks.compile.AbstractCompile
      com.android.build.gradle.tasks.ExtractAnnotations

class ExtractAnnotations
extends AbstractCompile

Field Summary
java.io.File apiFilter

An optional pointer to an API file to filter the annotations by (any annotations not found in the API file are considered hidden/not exposed.)

java.util.List bootClasspath

Boot classpath: typically android.jar

java.io.File classDir

Location of class files.

java.lang.String encoding

The encoding to use when reading source files.

java.util.List mergeJars

A list of existing annotation zip files (or dirs) to merge in.

java.io.File output

The output .zip file to write the annotations database to, if any

BasePlugin plugin

BaseVariantData variant

 
Method Summary
protected void compile()

boolean hasAndroidAnnotations()

 

Field Detail

apiFilter

@Optional
@InputFile
public java.io.File apiFilter
An optional pointer to an API file to filter the annotations by (any annotations not found in the API file are considered hidden/not exposed.) This is in the same format as the api-versions.xml file found in the SDK.


bootClasspath

@Input
public java.util.List bootClasspath
Boot classpath: typically android.jar


classDir

@Optional
@InputFile
public java.io.File classDir
Location of class files. If set, any non-public typedef source retention annotations will be removed prior to .jar packaging.


encoding

@Optional
@Input
public java.lang.String encoding
The encoding to use when reading source files. The output file will ignore this and will always be a UTF-8 encoded .xml file inside the annotations zip file.


mergeJars

@Optional
@InputFile
public java.util.List mergeJars
A list of existing annotation zip files (or dirs) to merge in. This can be used to merge in a hardcoded set of annotations that are not present in the source code, such as @Contract annotations we'd like to record without actually having a dependency on the IDEA annotations library.


output

@OutputFile
public java.io.File output
The output .zip file to write the annotations database to, if any


plugin

public BasePlugin plugin


variant

public BaseVariantData variant


 
Method Detail

compile

@Override
@TaskAction
protected void compile()


hasAndroidAnnotations

@Input
boolean hasAndroidAnnotations()


 

Copyright (C) 2012 The Android Open Source Project