Posted By

laurenceosx on 04/10/13


Tagged

groovy


Versions (?)

Groovy - file to md5 using Groovy and AntBuilder


 / Published in: Groovy
 

Groovy file to md5 using Groovy and AntBuilder

  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  

You need to login to post a comment.