gradle-android-eclipse icon indicating copy to clipboard operation
gradle-android-eclipse copied to clipboard

Support custom source and resource folders

Open schildbach opened this issue 6 years ago • 1 comments

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.

schildbach avatar Apr 26 '19 15:04 schildbach

Feel free to issue a pull-request.

greensopinion avatar Apr 26 '19 20:04 greensopinion