aboutsummaryrefslogtreecommitdiff
path: root/gradle/src/main/groovy/com/android/build/gradle/api/BaseVariant.java
diff options
context:
space:
mode:
Diffstat (limited to 'gradle/src/main/groovy/com/android/build/gradle/api/BaseVariant.java')
-rw-r--r--gradle/src/main/groovy/com/android/build/gradle/api/BaseVariant.java22
1 files changed, 22 insertions, 0 deletions
diff --git a/gradle/src/main/groovy/com/android/build/gradle/api/BaseVariant.java b/gradle/src/main/groovy/com/android/build/gradle/api/BaseVariant.java
index cfc1fd3..854f4a5 100644
--- a/gradle/src/main/groovy/com/android/build/gradle/api/BaseVariant.java
+++ b/gradle/src/main/groovy/com/android/build/gradle/api/BaseVariant.java
@@ -152,4 +152,26 @@ public interface BaseVariant {
*/
@Nullable
Task getAssemble();
+
+ /**
+ * Adds to the variant a task that generates Java source Code.
+ *
+ * This will make the compileJava task depend on this task and add the
+ * new source folders as compilation inputs.
+ *
+ * @param task the task
+ * @param sourceFolders the source folders where the generated source code is.
+ */
+ void addGeneratedSourceFolders(@NonNull Task task, @NonNull File... sourceFolders);
+
+ /**
+ * Adds to the variant a task that generates Java source Code.
+ *
+ * This will make the compileJava task depend on this task and add the
+ * new source folders as compilation inputs.
+ *
+ * @param task the task
+ * @param sourceFolders the source folders where the generated source code is.
+ */
+ void addGeneratedSourceFolders(@NonNull Task task, @NonNull Iterable<File> sourceFolders);
}