jvoegele/gradle-android-plugin — Issue #40: AIDL generation does not work with a non-standard directory structure
Author: ealden
Created: 2011-12-29 04:28:22+00:00
State: open

Originally reported by jan.berkel@gmail.com (28 Apr 2011)
https://code.google.com/p/gradle-android-plugin/issues/detail?id=6

***

**What steps will reproduce the problem?**
1). create a gradle build file for a android project following android's source layout conventions (sources locate in $ROOT/src/
2). Specify the non standard source set location in build.gradle ,as indicated in the wiki:

```
sourceSets {
main {
java {
srcDir 'src'
}
}
}
```
3). create an aidl file somewhere in the src directory
4). `run gradle androidPackage`

**What is the expected output? What do you see instead?**

the plugin looks for aidl files in src/main/java, doesn't find any and hence doesn't generate the stubs at all.

a bit of debugging seems to indicate that the overridden source set is not found by the plugin. also only the first directory is used, should use the first existing directory.

**What version of the product are you using? On what operating system?**

0.9.9, 1.0.0-SNAPSHOT

**Please provide any additional information below.**