Stay organized with collections
Save and categorize content based on your preferences.
AndroidSourceDirectorySet
interface AndroidSourceDirectorySet : Named
An AndroidSourceDirectorySet represents a set of directory inputs for an Android project.
Summary
Public functions |
@Incubating String |
A concise name for the source directory (typically used to identify it in a collection).
|
@Incubating Any |
Sets the source directories for this set.
|
@Incubating Any |
Adds the given source directory to this set.
|
@Incubating Any |
Adds the given source directories to this set.
|
Public functions
getName
@Incubating
fun getName(): String
A concise name for the source directory (typically used to identify it in a collection).
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# AndroidSourceDirectorySet\n=========================\n\n\n```\ninterface AndroidSourceDirectorySet : Named\n```\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn AndroidSourceDirectorySet represents a set of directory inputs for an Android project.\n\nSummary\n-------\n\n| ### Public functions ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [getName](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/AndroidSourceDirectorySet#getName())`()` A concise name for the source directory (typically used to identify it in a collection). |\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | [setSrcDirs](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/AndroidSourceDirectorySet#setSrcDirs(kotlin.collections.Iterable))`(srcDirs: `[Iterable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`\u003c*\u003e)` Sets the source directories for this set. |\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | [srcDir](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/AndroidSourceDirectorySet#srcDir(kotlin.Any))`(srcDir: `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`)` Adds the given source directory to this set. |\n| `@`[Incubating](https://docs.gradle.org/current/javadoc/org/gradle/api/Incubating.html)` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) | [srcDirs](/reference/tools/gradle-api/7.4/com/android/build/api/dsl/AndroidSourceDirectorySet#srcDirs(kotlin.Array))`(vararg srcDirs: `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)`)` Adds the given source directories to this set. |\n\nPublic functions\n----------------\n\n### getName\n\n```\n@Incubating\nfun getName(): String\n```\n\nA concise name for the source directory (typically used to identify it in a collection). \n\n### setSrcDirs\n\n```\n@Incubating\nfun setSrcDirs(srcDirs: Iterable\u003c*\u003e): Any\n```\n\nSets the source directories for this set. \n\n| Parameters ||\n|------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `srcDirs: `[Iterable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`\u003c*\u003e` | The source directories. These are evaluated as for [org.gradle.api.Project.files](https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#files-kotlin.Array[kotlin.Any]-) This method has a return value for legacy reasons. |\n\n### srcDir\n\n```\n@Incubating\nfun srcDir(srcDir: Any): Any\n```\n\nAdds the given source directory to this set.\n\nThe source directory. This is evaluated as [org.gradle.api.Project.file](https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#file-kotlin.Any-)\n\nThis method has a return value for legacy reasons. \n\n### srcDirs\n\n```\n@Incubating\nfun srcDirs(vararg srcDirs: Any): Any\n```\n\nAdds the given source directories to this set.\n\nThe source directories. These are evaluated as [org.gradle.api.Project.files](https://docs.gradle.org/current/javadoc/org/gradle/api/Project.html#files-kotlin.Array[kotlin.Any]-)\n\nThis method has a return value for legacy reasons."]]