com.android.build.gradle.api
[Groovy] Interface AndroidSourceSet


interface AndroidSourceSet

A AndroidSourceSet represents a logical group of Java, aidl, renderscript source as well as Android and non-Android resources.


Method Summary
AndroidSourceSet aidl(groovy.lang.Closure configureClosure)

Configures the location of the Android AIDL source for this set.

AndroidSourceSet assets(groovy.lang.Closure configureClosure)

Configures the location of the Android Assets for this set.

AndroidSourceDirectorySet getAidl()

The Android AIDL source directory for this source set.

SourceDirectorySet getAllJava()

All Java source files for this source set.

SourceDirectorySet getAllSource()

All source files for this source set.

AndroidSourceDirectorySet getAssets()

The Android Assets directory for this source set.

java.lang.String getCompileConfigurationName()

Returns the name of the compile configuration for this source set.

SourceDirectorySet getJava()

Returns the Java source which is to be compiled by the Java compiler into the class output directory.

AndroidSourceDirectorySet getJni()

The Android JNI source directory for this source set.

AndroidSourceDirectorySet getJniLibs()

The Android JNI libs directory for this source set.

AndroidSourceFile getManifest()

The Android Manifest file for this source set.

java.lang.String getName()

Returns the name of this source set.

java.lang.String getPackageConfigurationName()

Returns the name of the runtime configuration for this source set.

java.lang.String getProvidedConfigurationName()

Returns the name of the compiled-only configuration for this source set.

AndroidSourceDirectorySet getRenderscript()

The Android Renderscript source directory for this source set.

AndroidSourceDirectorySet getRes()

The Android Resources directory for this source set.

SourceDirectorySet getResources()

Returns the Java resources which are to be copied into the javaResources output directory.

AndroidSourceSet java(groovy.lang.Closure configureClosure)

Configures the Java source for this set.

AndroidSourceSet jni(groovy.lang.Closure configureClosure)

Configures the location of the Android JNI source for this set.

AndroidSourceSet jniLibs(groovy.lang.Closure configureClosure)

Configures the location of the Android JNI libs for this set.

AndroidSourceSet manifest(groovy.lang.Closure configureClosure)

Configures the location of the Android Manifest for this set.

AndroidSourceSet renderscript(groovy.lang.Closure configureClosure)

Configures the location of the Android Renderscript source for this set.

AndroidSourceSet res(groovy.lang.Closure configureClosure)

Configures the location of the Android Resources for this set.

AndroidSourceSet resources(groovy.lang.Closure configureClosure)

Configures the Java resources for this set.

AndroidSourceSet setRoot(java.lang.String path)

Sets the root of the source sets to a given path.

 

Method Detail

aidl

@NonNull
AndroidSourceSet aidl(groovy.lang.Closure configureClosure)
Configures the location of the Android AIDL source for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the AIDL source.

Parameters:
configureClosure - The closure to use to configure the AIDL source.
Returns:
this


assets

@NonNull
AndroidSourceSet assets(groovy.lang.Closure configureClosure)
Configures the location of the Android Assets for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the assets.

Parameters:
configureClosure - The closure to use to configure the Assets.
Returns:
this


getAidl

@NonNull
AndroidSourceDirectorySet getAidl()
The Android AIDL source directory for this source set.
Returns:
the source. Never returns null.


getAllJava

@NonNull
SourceDirectorySet getAllJava()
All Java source files for this source set. This includes, for example, source which is directly compiled, and source which is indirectly compiled through joint compilation.
Returns:
the Java source. Never returns null.


getAllSource

@NonNull
SourceDirectorySet getAllSource()
All source files for this source set.
Returns:
the source. Never returns null.


getAssets

@NonNull
AndroidSourceDirectorySet getAssets()
The Android Assets directory for this source set.
Returns:
the assets. Never returns null.


getCompileConfigurationName

@NonNull
java.lang.String getCompileConfigurationName()
Returns the name of the compile configuration for this source set.
Returns:
The configuration name


getJava

@NonNull
SourceDirectorySet getJava()
Returns the Java source which is to be compiled by the Java compiler into the class output directory.
Returns:
the Java source. Never returns null.


getJni

@NonNull
AndroidSourceDirectorySet getJni()
The Android JNI source directory for this source set.
Returns:
the source. Never returns null.


getJniLibs

@NonNull
AndroidSourceDirectorySet getJniLibs()
The Android JNI libs directory for this source set.
Returns:
the libs. Never returns null.


getManifest

@NonNull
AndroidSourceFile getManifest()
The Android Manifest file for this source set.
Returns:
the manifest. Never returns null.


getName

@NonNull
java.lang.String getName()
Returns the name of this source set.
Returns:
The name. Never returns null.


getPackageConfigurationName

@NonNull
java.lang.String getPackageConfigurationName()
Returns the name of the runtime configuration for this source set.
Returns:
The runtime configuration name


getProvidedConfigurationName

@NonNull
java.lang.String getProvidedConfigurationName()
Returns the name of the compiled-only configuration for this source set.
Returns:
The provided configuration name


getRenderscript

@NonNull
AndroidSourceDirectorySet getRenderscript()
The Android Renderscript source directory for this source set.
Returns:
the source. Never returns null.


getRes

@NonNull
AndroidSourceDirectorySet getRes()
The Android Resources directory for this source set.
Returns:
the resources. Never returns null.


getResources

@NonNull
SourceDirectorySet getResources()
Returns the Java resources which are to be copied into the javaResources output directory.
Returns:
the java resources. Never returns null.


java

@NonNull
AndroidSourceSet java(groovy.lang.Closure configureClosure)
Configures the Java source for this set.

The given closure is used to configure the SourceDirectorySet which contains the Java source.

Parameters:
configureClosure - The closure to use to configure the Java source.
Returns:
this


jni

@NonNull
AndroidSourceSet jni(groovy.lang.Closure configureClosure)
Configures the location of the Android JNI source for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the JNI source.

Parameters:
configureClosure - The closure to use to configure the JNI source.
Returns:
this


jniLibs

@NonNull
AndroidSourceSet jniLibs(groovy.lang.Closure configureClosure)
Configures the location of the Android JNI libs for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the JNI libs.

Parameters:
configureClosure - The closure to use to configure the JNI libs.
Returns:
this


manifest

@NonNull
AndroidSourceSet manifest(groovy.lang.Closure configureClosure)
Configures the location of the Android Manifest for this set.

The given closure is used to configure the AndroidSourceFile which contains the manifest.

Parameters:
configureClosure - The closure to use to configure the Android Manifest.
Returns:
this


renderscript

@NonNull
AndroidSourceSet renderscript(groovy.lang.Closure configureClosure)
Configures the location of the Android Renderscript source for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the Renderscript source.

Parameters:
configureClosure - The closure to use to configure the Renderscript source.
Returns:
this


res

@NonNull
AndroidSourceSet res(groovy.lang.Closure configureClosure)
Configures the location of the Android Resources for this set.

The given closure is used to configure the AndroidSourceDirectorySet which contains the resources.

Parameters:
configureClosure - The closure to use to configure the Resources.
Returns:
this


resources

@NonNull
AndroidSourceSet resources(groovy.lang.Closure configureClosure)
Configures the Java resources for this set.

The given closure is used to configure the SourceDirectorySet which contains the java resources.

Parameters:
configureClosure - The closure to use to configure the javaResources.
Returns:
this


setRoot

@NonNull
AndroidSourceSet setRoot(java.lang.String path)
Sets the root of the source sets to a given path. All entries of the source set are located under this root directory.
Parameters:
path - the root directory.
Returns:
this


 

Copyright (C) 2012 The Android Open Source Project