}
public def layoutCommunityPlugins(String home, boolean maySkipAndroidPlugin = false) {
- def androidHome = relativeAndroidHome()
- def androidToolsBaseHome = relativeAndroidToolsBaseHome()
- if (new File("$home/$androidHome").exists()) {
- layoutAndroid("$home/$androidHome", "$home/$androidToolsBaseHome")
- }
- else {
- def message = "Android plugin sources aren't found at ${androidHome}"
- if (maySkipAndroidPlugin) {
- projectBuilder.warning("$message. Android plugin is excluded from layout.")
+ if (!isDefined("pluginFilter") || pluginFilter.contains("android")) {
+ def androidHome = relativeAndroidHome()
+ def androidToolsBaseHome = relativeAndroidToolsBaseHome()
+ if (new File("$home/$androidHome").exists()) {
+ layoutAndroid("$home/$androidHome", "$home/$androidToolsBaseHome")
}
else {
- projectBuilder.error(message)
+ def message = "Android plugin sources aren't found at ${androidHome}"
+ if (maySkipAndroidPlugin) {
+ projectBuilder.warning("$message. Android plugin is excluded from layout.")
+ }
+ else {
+ projectBuilder.error(message)
+ }
}
}