CB-3445: Read project.properties to configure gradle libraries

This commit is contained in:
Ian Clelland
2014-08-20 10:44:48 -04:00
parent 94943a9a84
commit b6c5a5fc9a
4 changed files with 32 additions and 11 deletions
+18 -1
View File
@@ -1 +1,18 @@
include ':CordovaLib', ':'
import java.util.regex.Pattern
def getProjectList() {
def manifestFile = file("project.properties")
def pattern = Pattern.compile("android.library.reference.(\\d+)\\s*=\\s*(.*)")
def matcher = pattern.matcher(manifestFile.getText())
def projects = []
while (matcher.find()) {
projects.add(":" + matcher.group(2).replace("/",":"))
}
return projects
}
for (subproject in getProjectList()) {
include subproject
}
include ':'