Class ResourceFiltersPlugin

  • All Implemented Interfaces:
    Plugin<Project>

    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, see ResourceFilter.
    • Constructor Detail

      • ResourceFiltersPlugin

        public ResourceFiltersPlugin()
    • 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 class ProjectPlugin