From 536d206c562130ab028c3e86b92dba8be67afd61 Mon Sep 17 00:00:00 2001 From: Fulminazzo Date: Fri, 12 Apr 2024 23:51:19 +0200 Subject: [PATCH] Fixed copy of files --- buildSrc/src/main/groovy/JavaDocUtils.groovy | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/buildSrc/src/main/groovy/JavaDocUtils.groovy b/buildSrc/src/main/groovy/JavaDocUtils.groovy index bf0f2b12..90c1fe17 100644 --- a/buildSrc/src/main/groovy/JavaDocUtils.groovy +++ b/buildSrc/src/main/groovy/JavaDocUtils.groovy @@ -46,11 +46,7 @@ class JavaDocUtils { dst.mkdirs() if (files != null) files*.name.each { copyDirectory(new File(src, it), new File(dst, it)) } - } else { - Path path = Files.copy(src.toPath(), dst.toPath(), StandardCopyOption.REPLACE_EXISTING) - println "Simulating error, ${src.toPath()} -> ${dst.toPath()}: ${path}" - throw new RuntimeException("Simulating error, ${src.toPath()} -> ${dst.toPath()}: ${path}") - } + } else Files.copy(src.toPath(), dst.toPath(), StandardCopyOption.REPLACE_EXISTING) } /**