Package org.eclipse.tycho.p2maven
Class InstallableUnitPublisher
java.lang.Object
org.eclipse.tycho.p2maven.InstallableUnitPublisher
@Component(role=InstallableUnitPublisher.class)
public class InstallableUnitPublisher
extends Object
Component that helps publishing units using publisher actions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyAdvices(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> units, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAdvice> advices) Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit>publishMetadata(Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAction> actions) perform the providedIPublisherActions and return a (modifiable) collection of the resultingIInstallableUnitsCollection<org.eclipse.equinox.p2.metadata.IInstallableUnit>publishMetadata(Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAction> actions, Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAdvice> advices) perform the providedIPublisherActions and return a (modifiable) collection of the resultingIInstallableUnits
-
Constructor Details
-
InstallableUnitPublisher
public InstallableUnitPublisher()
-
-
Method Details
-
publishMetadata
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> publishMetadata(Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAction> actions) throws org.eclipse.core.runtime.CoreException perform the providedIPublisherActions and return a (modifiable) collection of the resultingIInstallableUnits- Parameters:
actions- theIPublisherActions to perform- Returns:
- the result of the publishing operation
- Throws:
org.eclipse.core.runtime.CoreException- if publishing of an action failed
-
publishMetadata
public Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> publishMetadata(Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAction> actions, Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAdvice> advices) throws org.eclipse.core.runtime.CoreException perform the providedIPublisherActions and return a (modifiable) collection of the resultingIInstallableUnits- Parameters:
actions- theIPublisherActions to performadvices- additionalIPublisherAdvices for the operation- Returns:
- the result of the publishing operation
- Throws:
org.eclipse.core.runtime.CoreException- if publishing of an action failed
-
applyAdvices
public void applyAdvices(Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> units, org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor descriptor, Collection<? extends org.eclipse.equinox.p2.publisher.IPublisherAdvice> advices)
-