Class DefaultEclipseInstaller
- java.lang.Object
-
- org.fedoraproject.p2.installer.impl.DefaultEclipseInstaller
-
- All Implemented Interfaces:
EclipseInstaller
public class DefaultEclipseInstaller extends java.lang.Object implements EclipseInstaller
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
ignoreOptional
private IFedoraBundleRepository
index
private org.slf4j.Logger
logger
private java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,Package>
metapackageLookup
private java.util.Set<Package>
metapackages
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
reactor
private java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>>
reactorRequires
private java.util.LinkedList<Package>
toProcess
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
unitCache
-
Constructor Summary
Constructors Constructor Description DefaultEclipseInstaller()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
createMetapackages(java.util.Map<java.lang.String,java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>> partialPackageMap)
private void
createRunnableRepository(Repository reactorRepo, java.nio.file.Path installationPath, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> content, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> symlinks)
private static java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>
getMetaUnits()
private static java.util.Collection<org.eclipse.equinox.p2.metadata.IRequirement>
getRequirements(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, boolean ignoreOptional)
EclipseInstallationResult
performInstallation(EclipseInstallationRequest request)
Perform installation of Eclipse artifacts.private void
resolveDeps()
private void
resolveRequirement(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, org.eclipse.equinox.p2.metadata.IRequirement req)
private boolean
tryResolveRequirementFrom(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, org.eclipse.equinox.p2.metadata.IRequirement req, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> repo, java.lang.String desc, boolean generateDep, boolean generateReq)
-
-
-
Field Detail
-
logger
private final org.slf4j.Logger logger
-
reactor
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> reactor
-
reactorRequires
private java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>> reactorRequires
-
metapackages
private java.util.Set<Package> metapackages
-
metapackageLookup
private java.util.Map<org.eclipse.equinox.p2.metadata.IInstallableUnit,Package> metapackageLookup
-
toProcess
private java.util.LinkedList<Package> toProcess
-
index
private IFedoraBundleRepository index
-
ignoreOptional
private boolean ignoreOptional
-
unitCache
private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> unitCache
-
-
Method Detail
-
performInstallation
public EclipseInstallationResult performInstallation(EclipseInstallationRequest request) throws java.lang.Exception
Description copied from interface:EclipseInstaller
Perform installation of Eclipse artifacts.- Specified by:
performInstallation
in interfaceEclipseInstaller
- Parameters:
request
- The set of requested installation parameters.- Returns:
- The installation result, containing the OSGi provided capabilities.
- Throws:
java.lang.Exception
- if installation fails
-
createMetapackages
private void createMetapackages(java.util.Map<java.lang.String,java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit>> partialPackageMap)
-
resolveDeps
private void resolveDeps()
-
resolveRequirement
private void resolveRequirement(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, org.eclipse.equinox.p2.metadata.IRequirement req)
-
tryResolveRequirementFrom
private boolean tryResolveRequirementFrom(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, org.eclipse.equinox.p2.metadata.IRequirement req, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> repo, java.lang.String desc, boolean generateDep, boolean generateReq)
-
getRequirements
private static java.util.Collection<org.eclipse.equinox.p2.metadata.IRequirement> getRequirements(org.eclipse.equinox.p2.metadata.IInstallableUnit iu, boolean ignoreOptional)
-
createRunnableRepository
private void createRunnableRepository(Repository reactorRepo, java.nio.file.Path installationPath, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> content, java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> symlinks) throws java.lang.Exception
- Throws:
java.lang.Exception
-
getMetaUnits
private static java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> getMetaUnits()
-
-