diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-10 17:19:15 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-11-10 17:19:15 +0100 |
commit | eb13b18fc807a036823007a86c7dcf32ebb6cd4a (patch) | |
tree | f493821aa1e4a3ebb6f4ecc721b3500fced882b6 | |
parent | 3d3cec096a564ff183e6358fe7f3b88acd56c369 (diff) | |
download | dokka-eb13b18fc807a036823007a86c7dcf32ebb6cd4a.tar.gz dokka-eb13b18fc807a036823007a86c7dcf32ebb6cd4a.tar.bz2 dokka-eb13b18fc807a036823007a86c7dcf32ebb6cd4a.zip |
fix path for renaming file after proguard
-rw-r--r-- | dokka-fatjar/build.gradle | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dokka-fatjar/build.gradle b/dokka-fatjar/build.gradle index ad07e629..6f7d0d63 100644 --- a/dokka-fatjar/build.gradle +++ b/dokka-fatjar/build.gradle @@ -31,8 +31,12 @@ task proguard(type: ProGuardTask) { outjars "build/libs/dokka-fatjar-${dokka_version}.out.jar" } proguard.doLast { - new File("build/libs/dokka-fatjar-${dokka_version}.jar").renameTo("build/libs/dokka-fatjar-${dokka_version}.in.jar") - new File("build/libs/dokka-fatjar-${dokka_version}.out.jar").renameTo("build/libs/dokka-fatjar-${dokka_version}.jar") + def inFile = new File("$projectDir/build/libs/dokka-fatjar-${dokka_version}.jar") + if (!inFile.exists()) { + throw new IOException("Could not find Proguard input file ${inFile.absolutePath}") + } + inFile.renameTo("$projectDir/build/libs/dokka-fatjar-${dokka_version}.in.jar") + new File("$projectDir/build/libs/dokka-fatjar-${dokka_version}.out.jar").renameTo(inFile) } jar { |