diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant index 2a7d11af04ff..a156c945689d 100644 --- a/build/scripts/layouts.gant +++ b/build/scripts/layouts.gant @@ -230,12 +230,8 @@ def layoutFull(String home, String targetDirectory, String patchedDescriptorDir } public def layoutCommunityPlugins(String home) { - layoutCommunityPlugins(home, null) -} - -public def layoutCommunityPlugins(String home, String androidPluginHome) { - if (androidPluginHome != null) { - layoutAndroid(androidPluginHome) + if (isDefined("androidPluginHome")) { + layoutAndroid(p("androidPluginHome")) } dir("plugins") {