Package com.android.build.api.transform
Interface Context
Deprecated.
Context for the transform.
This gives access to a limited amount of context when the transform is run.
-
Method Summary
Modifier and TypeMethodDescriptionorg.gradle.api.logging.LoggingManagerDeprecated.Returns the LoggingManager which can be used to control the logging level and standard output/error capture for this task.getPath()Deprecated.Returns the path of the task, which is a fully qualified name for the task.Deprecated.Returns the project name containing the task.Deprecated.Returns a directory which this task can use to write temporary files to.Deprecated.Returns the name of the variant.org.gradle.workers.WorkerExecutorDeprecated.Returns theWorkerExecutorto enlist runnable pieces of work.
-
Method Details
-
getLogging
org.gradle.api.logging.LoggingManager getLogging()Deprecated.Returns the LoggingManager which can be used to control the logging level and standard output/error capture for this task. By default, System.out is redirected to the Gradle logging system at the QUIET log level, and System.err is redirected at the ERROR log level.- Returns:
- the LoggingManager. Never returns null.
-
getTemporaryDir
File getTemporaryDir()Deprecated.Returns a directory which this task can use to write temporary files to. Each task instance is provided with a separate temporary directory. There are no guarantees that the contents of this directory will be kept beyond the execution of the task.- Returns:
- The directory. Never returns null. The directory will already exist.
-
getPath
String getPath()Deprecated.Returns the path of the task, which is a fully qualified name for the task. The path of a task is the path of itsProjectplus the name of the task, separated by:.- Returns:
- the path of the task, which is equal to the path of the project plus the name of the task.
-
getProjectName
String getProjectName()Deprecated.Returns the project name containing the task.- Returns:
- the
Project.getName()
-
getVariantName
Deprecated.Returns the name of the variant.- Returns:
- the name of the variant.
-
getWorkerExecutor
@NonNull org.gradle.workers.WorkerExecutor getWorkerExecutor()Deprecated.Returns theWorkerExecutorto enlist runnable pieces of work.- Returns:
- a task level shared instance.
-