Package com.diffplug.gradle.eclipse
Class BuildPropertiesPlugin
- java.lang.Object
-
- com.diffplug.gradle.ProjectPlugin
-
- com.diffplug.gradle.eclipse.BuildPropertiesPlugin
-
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' ```
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildPropertiesPlugin.Legacy
-
Constructor Summary
Constructors Constructor Description BuildPropertiesPlugin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyOnce(Project project)
Plugin application, which is guaranteed to execute only once.List<String>
getBinIncludes()
Returns the bin.includes from the build.properties file.static List<String>
getBinIncludes(Project project)
Returns the bin.incldes for this project.-
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
-
getBinIncludes
public static List<String> getBinIncludes(Project project)
Returns the bin.incldes for this project.
-
-