Package aQute.bnd.ant

Class WrapTask

  • All Implemented Interfaces:
    aQute.service.reporter.Report, aQute.service.reporter.Reporter, java.lang.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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface aQute.service.reporter.Report

        aQute.service.reporter.Report.Location
      • Nested classes/interfaces inherited from interface aQute.service.reporter.Reporter

        aQute.service.reporter.Reporter.SetLocation
    • Field Summary

      • Fields inherited from class org.apache.tools.ant.Task

        target, taskName, taskType, wrapper
      • Fields inherited from class org.apache.tools.ant.ProjectComponent

        description, location, project
    • Constructor Summary

      Constructors 
      Constructor Description
      WrapTask()  
    • Constructor Detail

      • WrapTask

        public WrapTask()
    • Method Detail

      • 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​(java.lang.String files)
      • setClasspath

        public void setClasspath​(java.lang.String files)
      • 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​(java.io.File output)
      • setDefinitions

        public void setDefinitions​(java.io.File out)
      • addConfiguredFileSet

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

        public void setVersion​(java.lang.String version)
      • setBsn

        public void setBsn​(java.lang.String bsn)