com.android.build.gradle.api
[Java] Interface AndroidSourceFile


public interface AndroidSourceFile

An AndroidSourceFile represents a single file input for an Android project.


Method Summary
java.lang.String getName()

A concise name for the source directory (typically used to identify it in a collection).

java.io.File getSrcFile()

Returns the file.

AndroidSourceFile srcFile(java.lang.Object srcPath)

Sets the location of the file.

 

Method Detail

getName

public java.lang.String getName()
A concise name for the source directory (typically used to identify it in a collection).


getSrcFile

public java.io.File getSrcFile()
Returns the file.
Returns:
the file input.


srcFile

public AndroidSourceFile srcFile(java.lang.Object srcPath)
Sets the location of the file.
Parameters:
srcPath - The source directory. This is evaluated as for org.gradle.api.Project#file(Object)
Returns:
the AndroidSourceFile object


 

Copyright (C) 2012 The Android Open Source Project