Copy files from one folder to another with Groovy
grails, groovy
Solution
If you're running on JDK7, you can use java.nio.file.Files.copy(Path source, Path target, CopyOption... options) method
Problem
``` new AntBuilder().copy(todir: destinationDir) { fileset(dir: sourceDir) } ``` i have used above code to copy a file from source to destination folder. it was working fine with grails 2.3.0 now updated grails to 2.3.4 ,now its not working in production environment. Now getting the following error "java.lang.ClassNotFoundException: org.apache.tools.ant.BuildException"