This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def path1 = new File(args[0]).absolutePath | |
def path2 = new File(args[1]).absolutePath | |
def different = compareDirs(path1, path2) | |
different.files.each { | |
println it.from | |
new AntBuilder().copy ( file: it.from.absolutePath, tofile : it.to.absolutePath ) | |
} | |
println different.files.size() + ' of ' + different.count |