Update recipe-custome-virgo
Only unzip the runtime, if available.
diff --git a/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle b/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle
index a1405e7..f300ab1 100644
--- a/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle
+++ b/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle
@@ -34,11 +34,14 @@
task unzipRuntime(type: Copy, dependsOn: dockerize) {
outputs.upToDateWhen { false } // always unzip
- def tarFile = new groovy.util.FileNameByRegexFinder().getFileNames("${->project.buildDir.absolutePath}", /.*\.tar/).get(0)
- def outputDir = file("${buildDir}")
+ def fileNames = new FileNameByRegexFinder().getFileNames("${-> project.buildDir.absolutePath}", /.*\.tar/)
+ if (fileNames) {
+ def tarFile = fileNames.get(0)
+ def outputDir = file("${buildDir}")
- from tarTree(tarFile)
- into outputDir
+ from tarTree(tarFile)
+ into outputDir
+ }
}
// tag::task_start_virgo_runtime[]