Class PublisherServiceImpl
- java.lang.Object
-
- org.eclipse.tycho.p2.tools.publisher.PublisherServiceImpl
-
- All Implemented Interfaces:
PublisherService
class PublisherServiceImpl extends java.lang.Object implements PublisherService
-
-
Field Summary
Fields Modifier and Type Field Description private PublisherActionRunner
publisherRunner
private PublishingRepository
publishingRepository
private java.lang.String
qualifier
-
Constructor Summary
Constructors Constructor Description PublisherServiceImpl(PublisherActionRunner publisherRunner, java.lang.String qualifier, PublishingRepository publishingRepository)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<DependencySeed>
publishCategories(java.io.File categoryDefinition)
Publishes given category definitions.java.util.Collection<DependencySeed>
publishEEProfile(java.io.File profileFile)
Publishes the given OSGi execution environment profile file.java.util.Collection<DependencySeed>
publishEEProfile(java.lang.String profileName)
Publishes the given OSGi execution environment profile.private static java.util.Collection<DependencySeed>
toSeeds(java.lang.String type, java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)
(package private) void
validateProfile(java.io.File profileFile)
private void
validateProfile(java.util.Properties props, java.io.File profileFile)
-
-
-
Field Detail
-
publisherRunner
private final PublisherActionRunner publisherRunner
-
qualifier
private final java.lang.String qualifier
-
publishingRepository
private final PublishingRepository publishingRepository
-
-
Constructor Detail
-
PublisherServiceImpl
public PublisherServiceImpl(PublisherActionRunner publisherRunner, java.lang.String qualifier, PublishingRepository publishingRepository)
-
-
Method Detail
-
publishCategories
public java.util.Collection<DependencySeed> publishCategories(java.io.File categoryDefinition) throws FacadeException, java.lang.IllegalStateException
Description copied from interface:PublisherService
Publishes given category definitions.- Specified by:
publishCategories
in interfacePublisherService
- Parameters:
categoryDefinition
- A category.xml file as defined by the Eclipse PDE- Returns:
- handles to the root IUs in the publisher result
- Throws:
FacadeException
- if a checked exception occurs during publishingjava.lang.IllegalStateException
-
publishEEProfile
public java.util.Collection<DependencySeed> publishEEProfile(java.io.File profileFile) throws FacadeException
Description copied from interface:PublisherService
Publishes the given OSGi execution environment profile file.- Specified by:
publishEEProfile
in interfacePublisherService
- Parameters:
profileFile
- the .profile file- Returns:
- handles to the root IUs in the publisher result
- Throws:
FacadeException
- if a checked exception occurs during publishing
-
publishEEProfile
public java.util.Collection<DependencySeed> publishEEProfile(java.lang.String profileName) throws FacadeException
Description copied from interface:PublisherService
Publishes the given OSGi execution environment profile.- Specified by:
publishEEProfile
in interfacePublisherService
- Returns:
- handles to the root IUs in the publisher result
- Throws:
FacadeException
- if a checked exception occurs during publishing
-
validateProfile
void validateProfile(java.io.File profileFile) throws FacadeException
- Throws:
FacadeException
-
validateProfile
private void validateProfile(java.util.Properties props, java.io.File profileFile) throws FacadeException
- Throws:
FacadeException
-
toSeeds
private static java.util.Collection<DependencySeed> toSeeds(java.lang.String type, java.util.Collection<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)
-
-