Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle - Delete files with certain extension

Tags:

gradle

I am using Gradle and would like to delete all files with a certain extension. Is that something Gradle can do?

like image 815
ThomYorkkke Avatar asked Dec 04 '14 03:12

ThomYorkkke


1 Answers

Use the Gradle Delete task.

task deleteFiles(type: Delete) {     delete fileTree('dir/foo') {         include '**/*.ext'     } } 
like image 128
Mark Vieira Avatar answered Nov 03 '22 20:11

Mark Vieira