Class PublisherActionRunner


  • class PublisherActionRunner
    extends java.lang.Object
    Helper for running publisher actions in the context of a project.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> executeAction​(org.eclipse.equinox.p2.publisher.IPublisherAction action, org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataOutput, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactOutput, org.eclipse.equinox.p2.publisher.IPublisherAdvice... advice)  
      private void handlePublisherStatus​(org.eclipse.core.runtime.IStatus result)  
      private org.eclipse.equinox.p2.publisher.IPublisherInfo newPublisherInfo​(org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataOutput, org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactsOutput)  
      private void setTargetEnvironments​(org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo)
      Configure the list of target environments in the PublisherInfo.
      • Methods inherited from class java.lang.Object

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

      • contextIUs

        private org.eclipse.equinox.p2.repository.metadata.IMetadataRepository contextIUs
    • Constructor Detail

      • PublisherActionRunner

        public PublisherActionRunner​(org.eclipse.equinox.p2.repository.metadata.IMetadataRepository contextInstallableUnits,
                                     java.util.List<TargetEnvironment> environments,
                                     MavenLogger logger)
    • Method Detail

      • executeAction

        public java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> executeAction​(org.eclipse.equinox.p2.publisher.IPublisherAction action,
                                                                                                    org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataOutput,
                                                                                                    org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactOutput,
                                                                                                    org.eclipse.equinox.p2.publisher.IPublisherAdvice... advice)
      • newPublisherInfo

        private org.eclipse.equinox.p2.publisher.IPublisherInfo newPublisherInfo​(org.eclipse.equinox.p2.repository.metadata.IMetadataRepository metadataOutput,
                                                                                 org.eclipse.equinox.p2.repository.artifact.IArtifactRepository artifactsOutput)
      • setTargetEnvironments

        private void setTargetEnvironments​(org.eclipse.equinox.p2.publisher.PublisherInfo publisherInfo)
        Configure the list of target environments in the PublisherInfo. This information is for example needed by the ProductAction which generates different configuration IUs for each environment.
      • handlePublisherStatus

        private void handlePublisherStatus​(org.eclipse.core.runtime.IStatus result)