Package aQute.bnd.gradle
Class BndPluginExtension
java.lang.Object
aQute.bnd.gradle.BndPluginExtension
- All Implemented Interfaces:
org.gradle.api.plugins.ExtensionAware
public abstract class BndPluginExtension
extends Object
implements org.gradle.api.plugins.ExtensionAware
BndPluginExtension for Gradle.
Add property access for bnd properties to projects that apply the
biz.aQute.bnd plugin.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBndPluginExtension(aQute.bnd.build.Project bndProject) Create a BndPlugin extension. -
Method Summary
Modifier and TypeMethodDescriptionReturn the trimmed value of the specified property.Return the trimmed value of the specified property.aQute.bnd.build.ProjectReturn the Bnd Project for the extension.booleanReturn a boolean value for the specified property.Return the trimmed value of the specified merged property.Return the macro processed value of the specified line.propertyMissing(String name) Handle a missing property.unprocessed(String name, Object defaultValue) Return the trimmed unprocessed value of the specified property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gradle.api.plugins.ExtensionAware
getExtensions
-
Field Details
-
NAME
Name of the extension.- See Also:
-
-
Constructor Details
-
BndPluginExtension
public BndPluginExtension(aQute.bnd.build.Project bndProject) Create a BndPlugin extension.- Parameters:
bndProject- The Bnd Project for the extension.
-
-
Method Details
-
getProject
public aQute.bnd.build.Project getProject()Return the Bnd Project for the extension.- Returns:
- The Bnd Project for the extension.
-
is
Return a boolean value for the specified property.- Parameters:
name- The property name.- Returns:
- A boolean value for the specified property.
-
get
Return the trimmed value of the specified property.- Parameters:
name- The property name.- Returns:
- The trimmed value of the specified property.
-
get
Return the trimmed value of the specified property.- Parameters:
name- The property name.defaultValue- The default value if the specified property does not exist.- Returns:
- The trimmed value of the specified property.
-
merge
Return the trimmed value of the specified merged property.- Parameters:
name- The property name.- Returns:
- The trimmed value of the specified merged property.
-
process
Return the macro processed value of the specified line.- Parameters:
line- The line to macro process.- Returns:
- The macro processed value of the specified line.
-
unprocessed
Return the trimmed unprocessed value of the specified property.- Parameters:
name- The property name.defaultValue- The default value if the specified property does not exist.- Returns:
- The trimmed unprocessed value of the specified property.
-
propertyMissing
Handle a missing property.- Parameters:
name- The requested property name.- Returns:
- A value for the requested property.
- Throws:
groovy.lang.MissingPropertyException- If this method cannot supply a value.
-