Community Edition build script: do not fail if Android sources are missing

This commit is contained in:
nik
2014-09-15 12:22:09 +04:00
parent 1cdde842f9
commit 34a97346fd
2 changed files with 8 additions and 1 deletions
+2
View File
@@ -45,6 +45,8 @@ class Paths {
def paths = new Paths(out)
setProperty("paths", paths)
setProperty("maySkipAndroidPlugin", true)
target(compile: "Compile project") {
loadProject()
+6 -1
View File
@@ -254,7 +254,12 @@ def layoutFull(String home, String targetDirectory, String patchedDescriptorDir
}
public def layoutCommunityPlugins(String home) {
layoutAndroid("$home/android")
if (!isDefined("maySkipAndroidPlugin") || new File("$home/android").exists()) {
layoutAndroid("$home/android")
}
else {
projectBuilder.warning("Android plugin sources aren't found at $home/android. Android plugin is excluded from layout.")
}
dir("plugins") {
def simplePlugins = ["commander", "copyright", "java-i18n", "hg4idea", "github"] //, "tasks-time-tracking"]