Class BundlesPublisher


  • public class BundlesPublisher
    extends Object
    Convenience wrapper around FeaturesAndBundlesPublisher to help with bundle jars not available from a p2 repository.
    • Constructor Detail

      • BundlesPublisher

        public BundlesPublisher​(P2ApplicationLauncher launcher,
                                org.codehaus.plexus.logging.Logger log)
    • Method Detail

      • addBundle

        public void addBundle​(File bundle)
      • setTimeout

        public void setTimeout​(int timeoutInSeconds)
      • setWorkingDir

        public void setWorkingDir​(File workingDir)
      • publishBundles

        public URI publishBundles​(File targetDirectory)
                           throws IOException,
                                  org.apache.maven.plugin.MojoFailureException,
                                  org.apache.maven.plugin.MojoExecutionException
        Creates a p2 repository in targetDirectory containing the bundles added.
        Parameters:
        targetDirectory - (must be emtpy)
        Returns:
        URI of p2 repository created
        Throws:
        IOException
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException