Class DefaultEclipseInstaller

    • 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  
    • 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • ignoreOptional

        private boolean ignoreOptional
      • unitCache

        private java.util.Set<org.eclipse.equinox.p2.metadata.IInstallableUnit> unitCache
    • Constructor Detail

      • DefaultEclipseInstaller

        public DefaultEclipseInstaller()
    • Method Detail

      • 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()