Class BundlesPublisher


  • public class BundlesPublisher
    extends java.lang.Object
    Convenience wrapper around FeaturesAndBundlesPublisher to help with bundle jars not available from a p2 repository.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addBundle​(java.io.File bundle)  
      java.net.URI publishBundles​(java.io.File targetDirectory)
      Creates a p2 repository in targetDirectory containing the bundles added.
      void setTimeout​(int timeoutInSeconds)  
      void setWorkingDir​(java.io.File workingDir)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bundles

        private java.util.List<java.io.File> bundles
      • workingDir

        private java.io.File workingDir
      • timeoutInSeconds

        private int timeoutInSeconds
      • log

        private org.codehaus.plexus.logging.Logger log
    • Constructor Detail

      • BundlesPublisher

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

      • addBundle

        public void addBundle​(java.io.File bundle)
      • setTimeout

        public void setTimeout​(int timeoutInSeconds)
      • setWorkingDir

        public void setWorkingDir​(java.io.File workingDir)
      • publishBundles

        public java.net.URI publishBundles​(java.io.File targetDirectory)
                                    throws java.io.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:
        java.io.IOException
        org.apache.maven.plugin.MojoFailureException
        org.apache.maven.plugin.MojoExecutionException