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 + } +}