mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-19 23:42:53 +08:00
19 lines
463 B
Groovy
19 lines
463 B
Groovy
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 ':'
|