From 6cff306a085dd2e5ee77b6795bc10a61e4027c4c Mon Sep 17 00:00:00 2001 From: Alexander Zolotov Date: Wed, 5 Apr 2017 10:21:58 +0300 Subject: [PATCH] Fix jdks unpacking in community --- build/scripts/unpackJdks.gant | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/scripts/unpackJdks.gant b/build/scripts/unpackJdks.gant index b36928ed00a8..f1a3c9486da0 100644 --- a/build/scripts/unpackJdks.gant +++ b/build/scripts/unpackJdks.gant @@ -30,7 +30,8 @@ target(default: "Unpack JDKs") { private File getDependenciesProjectDir() { String home = guessHome(this) - return new File(home, new File(home).name == "community" ? "build/dependencies" : "community/build/dependencies") + File community = new File(home, 'community') + return new File(community.exists() ? community : new File(home), "build/dependencies") } static String guessHome(Script script) {