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
    Modifier and Type
    Field
    Description
    static final String
    Name of the extension.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BndPluginExtension(aQute.bnd.build.Project bndProject)
    Create a BndPlugin extension.
  • Method Summary

    Modifier and Type
    Method
    Description
    get(String name)
    Return the trimmed value of the specified property.
    get(String name, Object defaultValue)
    Return the trimmed value of the specified property.
    aQute.bnd.build.Project
    Return the Bnd Project for the extension.
    boolean
    is(String name)
    Return a boolean value for the specified property.
    merge(String name)
    Return the trimmed value of the specified merged property.
    Return the macro processed value of the specified line.
    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, wait

    Methods inherited from interface org.gradle.api.plugins.ExtensionAware

    getExtensions
  • Field Details

  • 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

      public boolean is(String name)
      Return a boolean value for the specified property.
      Parameters:
      name - The property name.
      Returns:
      A boolean value for the specified property.
    • get

      public String get(String name)
      Return the trimmed value of the specified property.
      Parameters:
      name - The property name.
      Returns:
      The trimmed value of the specified property.
    • get

      public Object get(String name, Object defaultValue)
      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

      public String merge(String name)
      Return the trimmed value of the specified merged property.
      Parameters:
      name - The property name.
      Returns:
      The trimmed value of the specified merged property.
    • process

      public String process(String line)
      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

      public Object unprocessed(String name, Object defaultValue)
      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

      public String propertyMissing(String name)
      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.