Docs
Blog
Newsletter
DPE University
Develocity
Gradle Forums
Exclude directories in clean task
Help/Discuss
Rene
(René Groeschke)
April 13, 2015, 6:52am
2
Hey,
you can configure the clean task with an exclude pattern:
clean { excludes '**/appFolder/**' }
2 Likes
Unable to exclude directory/file from clean
show post in topic
Related topics
Topic
Replies
Views
Activity
Unable to exclude directory/file from clean
Help/Discuss
3
5125
July 27, 2018
Clean bin folder
Old Forum Archive
3
11998
May 3, 2013
Is there a way to delete all files and folders from a directory but exclude the jar file?
Help/Discuss
3
25143
March 23, 2018
How do I delete a subset of files?
Old Forum Archive
6
35304
July 3, 2013
Why is gradle not excluding resources from my jar?
Help/Discuss
2
13177
May 15, 2017