Fix xplugins to not omit the first level project name

This commit is contained in:
Ryan Ernst 2015-11-23 15:15:40 -08:00
parent 529e442e2a
commit 21b42e2a42
1 changed files with 3 additions and 2 deletions

View File

@ -64,9 +64,10 @@ void addSubProjects(String path, File dir) {
if (dir.name == 'buildSrc') return; if (dir.name == 'buildSrc') return;
if (new File(dir, 'build.gradle').exists() == false) return; if (new File(dir, 'build.gradle').exists() == false) return;
include path String projectName = "${path}:${dir.name}"
include projectName
for (File subdir : dir.listFiles()) { for (File subdir : dir.listFiles()) {
addSubProjects("${path}:${subdir.name}", subdir) addSubProjects(projectName, subdir)
} }
} }