Package aQute.bnd.ant

Class WrapTask

java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
aQute.bnd.ant.BaseTask
aQute.bnd.ant.WrapTask
All Implemented Interfaces:
Report, Reporter, Cloneable

public class WrapTask extends BaseTask
Task to wrap a JAR as an OSGi bundle. You can specify the following properties:
  • bsn and version = Will set the appropriate properties
  • a classpath
  • an output directory or an output file if only one JAR is specified
  • A search directory (definitions) for bnd files named the same as the source which are used for info
  • Field Details

    • jars

      List<File> jars
      List of jars to wrap
    • output

      File output
      Output directory or file (directory must be used
    • definitions

      File definitions
    • classpath

      List<File> classpath
    • bsn

      String bsn
    • version

      Version version
    • force

      boolean force
    • failok

      boolean failok
    • exceptions

      boolean exceptions
  • Constructor Details

    • WrapTask

      public WrapTask()
  • Method Details

    • execute

      public void execute() throws org.apache.tools.ant.BuildException
      Overrides:
      execute in class org.apache.tools.ant.Task
      Throws:
      org.apache.tools.ant.BuildException
    • setJars

      public void setJars(String files)
    • addAll

      void addAll(List<File> list, String files, String separator)
    • setClasspath

      public void setClasspath(String files)
    • isFailok

      boolean isFailok()
    • setFailok

      public void setFailok(boolean failok)
    • setForce

      public void setForce(boolean force)
    • setExceptions

      public void setExceptions(boolean exceptions)
      Overrides:
      setExceptions in class BaseTask
    • setOutput

      public void setOutput(File output)
    • setDefinitions

      public void setDefinitions(File out)
    • addConfiguredFileSet

      public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet list)
    • setVersion

      public void setVersion(String version)
    • setBsn

      public void setBsn(String bsn)