From 09c2af0f985da79b888d4268ee966eee546ec827 Mon Sep 17 00:00:00 2001 From: nik Date: Tue, 11 Apr 2017 11:50:06 +0300 Subject: [PATCH] build scripts: fixed updating from sources for IDEA Community --- build/scripts/idea_community.gant | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/build/scripts/idea_community.gant b/build/scripts/idea_community.gant index 8c0a6545572b..bd80d28014a3 100644 --- a/build/scripts/idea_community.gant +++ b/build/scripts/idea_community.gant @@ -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) -} \ No newline at end of file +} + +private boolean isDefined(String key) { + try { + this[key] + return true + } + catch (MissingPropertyException ignored) { + return false + } +}