Class BuildPropertiesPlugin

  • All Implemented Interfaces:
    Plugin<Project>

    public class BuildPropertiesPlugin
    extends ProjectPlugin
    Uses [`build.properties`](https://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.pde.doc.user%2Fguide%2Ftools%2Feditors%2Fmanifest_editor%2Fbuild.htm) to control a gradle build, and fixes the eclipse project classpath to include binary assets specified in `build.properties`. Eclipse PDE uses a `build.properties` file to control the build process. Even if you aren't using PDE for your build, the IDE will throw warnings if you don't keep the `build.properties` up to date. This plugin reads the `build.properties` file, and uses that to setup the Gradle `processResources` task. It also ensures that these resources are available on the IDE's classpath. This way your `build.properties` can be the single source of truth for all the binary assets inside your plugin. ```groovy apply plugin: 'com.diffplug.eclipse.buildproperties' ```
    • Constructor Detail

      • BuildPropertiesPlugin

        public BuildPropertiesPlugin()
    • 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
      • getBinIncludes

        public static List<String> getBinIncludes​(Project project)
        Returns the bin.incldes for this project.
      • getBinIncludes

        public List<String> getBinIncludes()
        Returns the bin.includes from the build.properties file.