All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.android.build.api.transform.Context Maven / Gradle / Ivy

There is a newer version: 2.3.0
Show newest version
/*
 * Copyright (C) 2015 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.android.build.api.transform;

import com.google.common.annotations.Beta;

import org.gradle.api.logging.LoggingManager;

import java.io.File;

/**
 * Context for the transform.
 *
 * This gives access to a limited amount of context when the transform is run.
 * 

* This API is non final and is subject to change. We are looking for feedback, and will * attempt to stabilize it in the 1.6 time frame. */ @Beta public interface Context { /** * 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. * * @return the LoggingManager. Never returns null. */ LoggingManager getLogging(); /** * 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. * * @return The directory. Never returns null. The directory will already exist. */ File getTemporaryDir(); /** * Returns the path of the task, which is a fully qualified name for the task. * * The path of a task is the path of its Project plus the name of the task, * separated by :. * * @return the path of the task, which is equal to the path of the project plus the name of the task. */ String getPath(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy