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) } /**