From 2c778aecb030b5f97ae2c6e23f27e319baf421ae Mon Sep 17 00:00:00 2001 From: nik Date: Mon, 29 Jun 2015 14:57:48 +0300 Subject: [PATCH] fixed updating IDEA CE from IDEA UE sources --- build/scripts/layouts.gant | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/scripts/layouts.gant b/build/scripts/layouts.gant index a8d23b4de88b..7d8cc30070c0 100644 --- a/build/scripts/layouts.gant +++ b/build/scripts/layouts.gant @@ -18,7 +18,9 @@ import static org.jetbrains.jps.idea.IdeaProjectLoader.guessHome includeTargets << new File("${guessHome(this)}/build/scripts/utils.gant") target('default': "Developers update") { - loadProjectFromPath(home) + //when IDEA CE is updated from IDEA UE sources project should be loaded from IDEA UE directory + String projectHome = isDefined("devIdeaHome") ? devIdeaHome : home + loadProjectFromPath(projectHome) def patchedDescriptorDir = patchAppDescriptor(deploy) layoutFull(home, deploy, patchedDescriptorDir) ant.delete(dir: patchedDescriptorDir)