Posted By

laurenceosx on 04/12/13


Tagged

groovy


Versions (?)

Groovy - KillCvs.groovy - Recursive Kill of Cvs Turd Files and Folders


 / Published in: Groovy
 

Drop this in your project dir and run it. This will recursively kill CVS files and folders.

  1. #!/usr/bin/env groovy
  2.  
  3. // KillCvs.groovy
  4. // Kill all annoying Cvs turd files.
  5.  
  6. def ant = new AntBuilder()
  7.  
  8. ant.delete( includeemptydirs: 'true', verbose: 'true' ) {
  9. fileset( dir: '.', includes: '**/CVS/', defaultexcludes: 'false', casesensitive: 'no' )
  10. fileset( dir: '.', includes: '**/.cvsignore', defaultexcludes: 'false', casesensitive: 'no' )
  11. }

Report this snippet  

You need to login to post a comment.