gradle-android-eclipse
gradle-android-eclipse copied to clipboard
Support custom source and resource folders
I've got a custom configuration of source and resource folders:
android {
…
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
jniLibs.srcDirs = ['libs']
}
test {
java.srcDirs = ['test']
resources.srcDirs = ['test']
}
}
…
}
This isn't honored by gradle-android-eclipse. It seems to expect the standard src/main/java etc. hierarchy.
Workaround: Edit the .classpath manually after running gradle eclipse.
Feel free to issue a pull-request.