public class BuildPropertiesPlugin extends ProjectPlugin
Uses build.properties
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.
apply plugin: 'com.diffplug.gradle.eclipse.buildproperties'
Constructor and Description |
---|
BuildPropertiesPlugin() |
Modifier and Type | Method and 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.
|
apply, getPlugin, treeDef
protected void applyOnce(Project project)
ProjectPlugin
Plugin application, which is guaranteed to execute only once.
applyOnce
in class ProjectPlugin
public static List<String> getBinIncludes(Project project)
Returns the bin.incldes for this project.