Guest User

Untitled

a guest
Aug 17th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. def ant = new AntBuilder() /* rules */
  2.  
  3. /* copy my roadtrip pictures and videos from CD and flatten it */
  4. ant.copy(todir: "/home/michal/Pictures/Norsko2004", flatten: true /* if false (default) it copies directory structure too */) {
  5. fileset(dir:"/media/Norsko 2004/Norsko 2004", casesensitive: false) {
  6. include(name: "**/*.jpg") /* pictures... */
  7. include(name: "**/*.mov") /* ...and videos */
  8. }
  9. }
  10.  
  11. /* then zip it all to single file */
  12. ant.zip(basedir:"/home/michal/Pictures/Norsko2004", destfile:"/home/michal/Pictures/Norsko2004/norsko2004.zip")
Add Comment
Please, Sign In to add comment