Skip to content

Instantly share code, notes, and snippets.

@fumokmm
Created March 3, 2011 13:12
Show Gist options
  • Save fumokmm/852741 to your computer and use it in GitHub Desktop.
Save fumokmm/852741 to your computer and use it in GitHub Desktop.
def getMD5(File file) {
new AntBuilder().with{
checksum(file: file, algorithm: 'MD5', property: 'result')
it.project.properties.result
}
}
println getMD5(new File(args[0]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment