Skip to content

Commit

Permalink
Fixed copy of files
Browse files Browse the repository at this point in the history
  • Loading branch information
fulminazzo committed Apr 12, 2024
1 parent fe8ea55 commit 536d206
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions buildSrc/src/main/groovy/JavaDocUtils.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

/**
Expand Down

0 comments on commit 536d206

Please sign in to comment.