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


public interface AndroidSourceDirectorySet

An AndroidSourceDirectorySet represents a lit of directory 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.util.Set getSrcDirs()

Returns the resolved directories.

AndroidSourceDirectorySet setSrcDirs(java.lang.Iterable srcDirs)

Sets the source directories for this set.

AndroidSourceDirectorySet srcDir(java.lang.Object srcDir)

Adds the given source directory to this set.

AndroidSourceDirectorySet srcDirs(java.lang.Object... srcDirs)

Adds the given source directories to this set.

 

Method Detail

getName

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


getSrcDirs

@NonNull
public java.util.Set getSrcDirs()
Returns the resolved directories.
Returns:
a non null set of File objects.


setSrcDirs

@NonNull
public AndroidSourceDirectorySet setSrcDirs(java.lang.Iterable srcDirs)
Sets the source directories for this set.
Parameters:
srcDirs - The source directories. These are evaluated as for org.gradle.api.Project#files(Object...)
Returns:
this


srcDir

@NonNull
public AndroidSourceDirectorySet srcDir(java.lang.Object srcDir)
Adds the given source directory to this set.
Parameters:
srcDir - The source directory. This is evaluated as for org.gradle.api.Project#file(Object)
Returns:
this


srcDirs

@NonNull
public AndroidSourceDirectorySet srcDirs(java.lang.Object... srcDirs)
Adds the given source directories to this set.
Parameters:
srcDirs - The source directories. These are evaluated as for org.gradle.api.Project#files(Object...)
Returns:
this


 

Copyright (C) 2012 The Android Open Source Project