Groovy - file to md5 using Groovy and AntBuilder


/ Published in: Groovy
Save to your folder(s)

Groovy file to md5 using Groovy and AntBuilder


Copy this code and paste it in your HTML
  1. String fileToMd5( File aFile ) {
  2. def antx = new AntBuilder();
  3. antx.checksum( file: aFile.path, property: "result1" )
  4. return antx.project.properties.result1;
  5. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.