Package com.diffplug.gradle.eclipse
Class ResourceFiltersPlugin
- java.lang.Object
-
- com.diffplug.gradle.ProjectPlugin
-
- com.diffplug.gradle.eclipse.ResourceFiltersPlugin
-
public class ResourceFiltersPlugin extends ProjectPlugin
Eclipse projects can have [resource filters](https://help.eclipse.org/neon/index.jsp?topic=%2Forg.eclipse.platform.doc.user%2Fconcepts%2Fresourcefilters.htm) which include or exclude certain files. ![Screenshot](https://i.stack.imgur.com/7eIVE.png) This plugin allows you to easily configure these settings. ```groovy apply plugin: 'com.diffplug.eclipse.resourcefilters' eclipseResourceFilters { exclude().folders().name('build') include().folders().projectRelativePath('main/src/*') exclude().files().name('*.class').recursive() } ``` For full details on what filters you can create, seeResourceFilter
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResourceFiltersPlugin.Legacy
-
Constructor Summary
Constructors Constructor Description ResourceFiltersPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyOnce(Project project)
Plugin application, which is guaranteed to execute only once.-
Methods inherited from class com.diffplug.gradle.ProjectPlugin
apply, getPlugin, treeDef
-
-
-
-
Method Detail
-
applyOnce
protected void applyOnce(Project project)
Description copied from class:ProjectPlugin
Plugin application, which is guaranteed to execute only once.- Specified by:
applyOnce
in classProjectPlugin
-
-