/ Published in: Groovy
How to easily copy a file with Groovy. Two solutions: include a library like the Apache Commons (Net) or simply use ant (AntBuilder from Groovy code). Posted by Brian Pontarelli and Russel Winder
Expand |
Embed | Plain Text
//importjava.net commons FileTools.copyFile("foo.txt", "bar.txt"); //antbuilder (no import needed!)
Comments
Subscribe to comments
You need to login to post a comment.

commons io works too