Fix jdks unpacking in community

This commit is contained in:
Alexander Zolotov
2017-04-05 10:21:58 +03:00
parent 103591a9c2
commit 6cff306a08
+2 -1
View File
@@ -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) {