From 0f957b305e8a5609ac5fe89bf4fccf04bc67bc51 Mon Sep 17 00:00:00 2001 From: Nils-Helge Garli Hegvik Date: Mon, 2 Jan 2017 11:26:51 +0100 Subject: [PATCH] Create installation directory if it does not exist --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 421a43a96..9142aebbf 100644 --- a/build.gradle +++ b/build.gradle @@ -82,6 +82,10 @@ task createSpecs(dependsOn: [installKernel, installLibs]) { spec = spec.replace("\${KERNEL_JAR_PATH}", "$installPath/${kernelFile.name}") String libsCp = files { configurations.deploy }.files.collect { "$installPath/lib/${it.name}" } .join(File.pathSeparator) spec = spec.replace("\${RUNTIME_CLASSPATH}", libsCp) + File installDir = new File("$installPath") + if(!installDir.exists()) { + installDir.mkdirs(); + } new File( "$installPath/kernel.json" ).write( spec, 'UTF-8' ) }