Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ant = new AntBuilder() /* rules */
- /* copy my roadtrip pictures and videos from CD and flatten it */
- ant.copy(todir: "/home/michal/Pictures/Norsko2004", flatten: true /* if false (default) it copies directory structure too */) {
- fileset(dir:"/media/Norsko 2004/Norsko 2004", casesensitive: false) {
- include(name: "**/*.jpg") /* pictures... */
- include(name: "**/*.mov") /* ...and videos */
- }
- }
- /* then zip it all to single file */
- ant.zip(basedir:"/home/michal/Pictures/Norsko2004", destfile:"/home/michal/Pictures/Norsko2004/norsko2004.zip")
Add Comment
Please, Sign In to add comment