build scripts: fixed updating from sources for IDEA Community

This commit is contained in:
nik
2017-04-11 11:50:36 +03:00
parent 48a43ddbb1
commit 09c2af0f98
+11 -1
View File
@@ -42,4 +42,14 @@ target('update-from-sources': 'Update locally installed distribution from compil
//when IDEA CE is updated from IDEA UE sources project should be loaded from IDEA UE directory
String projectHome = isDefined("devIdeaHome") ? devIdeaHome : home
new IdeaCommunityBuilder(home, binding, options, projectHome).buildUnpackedDistribution(deploy)
}
}
private boolean isDefined(String key) {
try {
this[key]
return true
}
catch (MissingPropertyException ignored) {
return false
}
}