Skip to content

Commit b9b5b2b

Browse files
authored
Merge pull request #9 from nilsga/master
Create installation directory if it does not exist
2 parents 586e1a0 + 0f957b3 commit b9b5b2b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.gradle

+4
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ task createSpecs(dependsOn: [installKernel, installLibs]) {
8282
spec = spec.replace("\${KERNEL_JAR_PATH}", "$installPath/${kernelFile.name}")
8383
String libsCp = files { configurations.deploy }.files.collect { "$installPath/lib/${it.name}" } .join(File.pathSeparator)
8484
spec = spec.replace("\${RUNTIME_CLASSPATH}", libsCp)
85+
File installDir = new File("$installPath")
86+
if(!installDir.exists()) {
87+
installDir.mkdirs();
88+
}
8589
new File( "$installPath/kernel.json" ).write( spec, 'UTF-8' )
8690
}
8791

0 commit comments

Comments
 (0)