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


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

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


Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.