Package org.eclipse.tycho.p2.target
Class PomDependencyCollectorImpl
- java.lang.Object
-
- org.eclipse.tycho.p2.target.PomDependencyCollectorImpl
-
- All Implemented Interfaces:
PomDependencyCollector
public class PomDependencyCollectorImpl extends java.lang.Object implements PomDependencyCollector
-
-
Field Summary
Fields Modifier and Type Field Description private TargetPlatformBundlePublisher
bundlesPublisher
private MavenLogger
logger
private java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade>
mavenInstallableUnits
private java.io.File
projectLocation
-
Constructor Summary
Constructors Constructor Description PomDependencyCollectorImpl(MavenContext mavenContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addArtifactWithExistingMetadata(IArtifactFacade artifact, IArtifactFacade p2MetadataFile)
void
addMavenArtifact(IArtifactFacade artifact, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)
(package private) java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit>
gatherMavenInstallableUnits()
(package private) IRawArtifactFileProvider
getArtifactRepoOfPublishedBundles()
(package private) java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade>
getMavenInstallableUnits()
java.io.File
getProjectLocation()
void
publishAndAddArtifactIfBundleArtifact(IArtifactFacade artifact)
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
readUnits(IArtifactFacade p2MetadataFile)
void
setProjectLocation(java.io.File projectLocation)
Sets the root folder of the project the target platform applies to.
-
-
-
Field Detail
-
bundlesPublisher
private final TargetPlatformBundlePublisher bundlesPublisher
-
logger
private final MavenLogger logger
-
mavenInstallableUnits
private java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> mavenInstallableUnits
-
projectLocation
private java.io.File projectLocation
-
-
Constructor Detail
-
PomDependencyCollectorImpl
public PomDependencyCollectorImpl(MavenContext mavenContext)
-
-
Method Detail
-
setProjectLocation
public void setProjectLocation(java.io.File projectLocation)
Description copied from interface:PomDependencyCollector
Sets the root folder of the project the target platform applies to.- Specified by:
setProjectLocation
in interfacePomDependencyCollector
-
getProjectLocation
public java.io.File getProjectLocation()
-
publishAndAddArtifactIfBundleArtifact
public void publishAndAddArtifactIfBundleArtifact(IArtifactFacade artifact)
- Specified by:
publishAndAddArtifactIfBundleArtifact
in interfacePomDependencyCollector
-
addArtifactWithExistingMetadata
public void addArtifactWithExistingMetadata(IArtifactFacade artifact, IArtifactFacade p2MetadataFile)
- Specified by:
addArtifactWithExistingMetadata
in interfacePomDependencyCollector
-
readUnits
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> readUnits(IArtifactFacade p2MetadataFile) throws java.io.IOException
- Throws:
java.io.IOException
-
addMavenArtifact
public void addMavenArtifact(IArtifactFacade artifact, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> units)
-
gatherMavenInstallableUnits
java.util.LinkedHashSet<org.eclipse.equinox.p2.metadata.IInstallableUnit> gatherMavenInstallableUnits()
-
getMavenInstallableUnits
java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,IArtifactFacade> getMavenInstallableUnits()
-
getArtifactRepoOfPublishedBundles
IRawArtifactFileProvider getArtifactRepoOfPublishedBundles()
-
-