Update recipe-custome-virgo Improve check if runtime tar file is present.
diff --git a/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle b/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle index f300ab1..312a162 100644 --- a/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle +++ b/recipe-custom-virgo/recipe-custom-virgo-runtime/build.gradle
@@ -34,13 +34,16 @@ task unzipRuntime(type: Copy, dependsOn: dockerize) { outputs.upToDateWhen { false } // always unzip - def fileNames = new FileNameByRegexFinder().getFileNames("${-> project.buildDir.absolutePath}", /.*\.tar/) - if (fileNames) { - def tarFile = fileNames.get(0) - def outputDir = file("${buildDir}") + def buildDir = project.buildDir + if (buildDir != null && buildDir.exists()) { + def fileNames = new FileNameByRegexFinder().getFileNames("${-> buildDir.absolutePath}", /.*\.tar/) + if (fileNames) { + def tarFile = fileNames.get(0) + def outputDir = file("${buildDir}") - from tarTree(tarFile) - into outputDir + from tarTree(tarFile) + into outputDir + } } }