Class P2Exporter

java.lang.Object
aQute.p2.export.P2Exporter
All Implemented Interfaces:
aQute.bnd.service.export.Exporter

public class P2Exporter extends Object implements aQute.bnd.service.export.Exporter
This is an exporter for p2 repositories.
  • Constructor Details

    • P2Exporter

      public P2Exporter()
  • Method Details

    • getTypes

      public String[] getTypes()
      Specified by:
      getTypes in interface aQute.bnd.service.export.Exporter
    • export

      public Map.Entry<String,aQute.bnd.osgi.Resource> export(String type, aQute.bnd.build.Project bndrun, Map<String,String> options) throws Exception
      Export an export definition. The definition consists of a number of bndrun files that are collected in jar file. The exporter will create the horrendously and redundant metadata needed for brain damaged p2.

      Problems are reported to the project

      Specified by:
      export in interface aQute.bnd.service.export.Exporter
      Parameters:
      type - the p2 type
      bndrun - the project file
      options - the options, see the p2exporte md file.
      Returns:
      a name & resource or null if there was a problem.
      Throws:
      Exception