Class BundleTaskConvention

java.lang.Object
aQute.bnd.gradle.BundleTaskConvention

@Deprecated public class BundleTaskConvention extends Object
Deprecated.
Replaced by BundleTaskExtension.
BundleTaskConvention for Gradle.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Create a BundleTaskConvention for the specified BundleTaskExtension.
    BundleTaskConvention(org.gradle.api.tasks.bundling.Jar task)
    Deprecated.
    Create a BundleTaskConvention for the specified Jar task.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bnd(CharSequence... lines)
    Deprecated.
    Add instructions to the bnd property from a list of multi-line strings.
    void
    bnd(Map<String,?> map)
    Deprecated.
    Add instructions to the bnd property from a map.
    void
    bnd(org.gradle.api.provider.Provider<? extends CharSequence> lines)
    Deprecated.
    Add a multi-line string of instructions to the bnd property using a Provider.
    void
    Deprecated.
    Execute the Action to build the bundle for the task.
    org.gradle.api.file.ConfigurableFileCollection
    classpath(Object... paths)
    Deprecated.
    Add files to the classpath.
    org.gradle.api.provider.Provider<String>
    Deprecated.
    The bnd property.
    org.gradle.api.file.RegularFileProperty
    Deprecated.
    The bndfile property.
    org.gradle.api.file.ConfigurableFileCollection
    Deprecated.
    The classpath property.
    void
    Deprecated.
    Set the bnd property from a multi-line string.
    void
    setBnd(Map<String,?> map)
    Deprecated.
    Set the bnd property from a map.
    void
    setBnd(org.gradle.api.provider.Provider<? extends CharSequence> lines)
    Deprecated.
    Set the bnd property from a multi-line string using a Provider.
    void
    Deprecated.
    Set the bndfile property value.
    void
    Deprecated.
    Set the bndfile property value.
    void
    Deprecated.
    Set the classpath property.
    void
    setSourceSet(org.gradle.api.tasks.SourceSet sourceSet)
    Deprecated.
    Set the sourceSet.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BundleTaskConvention

      public BundleTaskConvention(BundleTaskExtension extension)
      Deprecated.
      Create a BundleTaskConvention for the specified BundleTaskExtension.
      Parameters:
      extension - The BundleTaskExtension for this convention.
    • BundleTaskConvention

      public BundleTaskConvention(org.gradle.api.tasks.bundling.Jar task)
      Deprecated.
      Create a BundleTaskConvention for the specified Jar task.
      Parameters:
      task - The Jar task for this convention.
  • Method Details

    • getBndfile

      public org.gradle.api.file.RegularFileProperty getBndfile()
      Deprecated.
      The bndfile property.

      A bnd file containing bnd instructions for this project.

      Returns:
      The property for the bndfile.
    • setBndfile

      public void setBndfile(String file)
      Deprecated.
      Set the bndfile property value.
      Parameters:
      file - The bndfile name.
    • setBndfile

      public void setBndfile(Object file)
      Deprecated.
      Set the bndfile property value.
      Parameters:
      file - The bndfile object.
    • getBnd

      public org.gradle.api.provider.Provider<String> getBnd()
      Deprecated.
      The bnd property.

      If the bndfile property points an existing file, this property is ignored. Otherwise, the bnd instructions in this property will be used.

      Returns:
      The property for the bnd instructions.
    • setBnd

      public void setBnd(CharSequence line)
      Deprecated.
      Set the bnd property from a multi-line string.
      Parameters:
      line - bnd instructions.
    • setBnd

      public void setBnd(org.gradle.api.provider.Provider<? extends CharSequence> lines)
      Deprecated.
      Set the bnd property from a multi-line string using a Provider.
      Parameters:
      lines - A provider of bnd instructions.
    • bnd

      public void bnd(CharSequence... lines)
      Deprecated.
      Add instructions to the bnd property from a list of multi-line strings.
      Parameters:
      lines - bnd instructions.
    • bnd

      public void bnd(org.gradle.api.provider.Provider<? extends CharSequence> lines)
      Deprecated.
      Add a multi-line string of instructions to the bnd property using a Provider.
      Parameters:
      lines - A provider bnd instructions.
    • setBnd

      public void setBnd(Map<String,?> map)
      Deprecated.
      Set the bnd property from a map.
      Parameters:
      map - A map of bnd instructions.
    • bnd

      public void bnd(Map<String,?> map)
      Deprecated.
      Add instructions to the bnd property from a map.
      Parameters:
      map - A map of bnd instructions.
    • getClasspath

      public org.gradle.api.file.ConfigurableFileCollection getClasspath()
      Deprecated.
      The classpath property.

      The default value is sourceSets.main.compileClasspath.

      Returns:
      The property for the classpath.
    • classpath

      public org.gradle.api.file.ConfigurableFileCollection classpath(Object... paths)
      Deprecated.
      Add files to the classpath.
      Parameters:
      paths - The arguments will be handled using ConfigurableFileCollection.from().
      Returns:
      The property for the classpath.
    • setClasspath

      public void setClasspath(Object path)
      Deprecated.
      Set the classpath property.
      Parameters:
      path - The argument will be handled using ConfigurableFileCollection.from().
    • setSourceSet

      public void setSourceSet(org.gradle.api.tasks.SourceSet sourceSet)
      Deprecated.
      Set the sourceSet.
      Parameters:
      sourceSet - A sourceSet to use to find source code.
    • buildBundle

      public void buildBundle() throws Exception
      Deprecated.
      Execute the Action to build the bundle for the task.
      Throws:
      Exception - An exception that occurred during the bundle build.