On 2 Apr 2014, at 4:20 am, Justin Morey <[email protected]> wrote:
> Hi All,
>
> Our settings.gradle contains custom logic, to allow us to hook into some
> existing build infrastructure. It consists of a large Map, associating
> descriptive project names with the sub-directories in which they are found:
>
> def projects = [
> 'LibraryA' : 'dir1/dir2',
> 'LibraryB' : 'dir1/dir3',
> 'AppC' : 'dir1/dir4/app.gradle',
> ...
> ]
>
> At the bottom of settings.gradle, we turn this Map into projects:
>
> projects.each { name, path ->
> include(name)
> def project = project(":$name")
>
> File f = new File(path)
> File dir = (f.isDirectory() ? f : f.parentFile)
> project.projectDir = dir
> if (dir != f) {
> project.buildFileName = f.name
> }
Can you add this check in this loop:
assert project.buildFile.toURI().toString().contains('/')
and then try to import using Studio?
--
Adam Murdoch
Gradle Co-founder
http://www.gradle.org
VP of Engineering, Gradleware Inc. - Gradle Training, Support, Consulting
http://www.gradleware.com
Join us for Gradle Summit 2014, June 12th and 13th in Santa Clara, CA:
http://www.gradlesummit.com