Interface MirrorApplicationService

    • Method Detail

      • mirrorReactor

        void mirrorReactor​(RepositoryReferences sources,
                           DestinationRepositoryDescriptor destination,
                           java.util.Collection<DependencySeed> seeds,
                           BuildContext context,
                           boolean includeAllDependencies,
                           boolean includePacked,
                           java.util.Map<java.lang.String,​java.lang.String> filterProperties)
                    throws FacadeException
        Copies the given installable units and their dependencies into the p2 repository at the destination location. By default this only includes the units and their dependencies with strict versions (i.e. included content). Optionally, all transitive dependencies of the given units are also copied, if includeAllDependencies is set to true.
        Parameters:
        sources - The p2 repositories from which dependencies and artifacts are copied
        destination - The p2 repository that shall be written to. The location must be a directory, which may be empty. Existing content is not overwritten but is appended to.
        seeds - The dependency seeds that span the content to be copied. Note that the installable units obtained from the seeds are written into the destination p2 repository without checking if they are actually present in the source repositories. Therefore only units from the source repositories should be passed via this parameter.
        context - Build context information; in particular this parameter defines a filter for environment specific installable units
        includeAllDependencies - Whether to include all transitive dependencies
        includePacked - Whether to include packed artifacts
        filterProperties - additional filter properties to be set in the p2 slicing options. May be null
        Throws:
        FacadeException - if a checked exception occurs while mirroring
      • mirrorStandalone

        void mirrorStandalone​(RepositoryReferences sources,
                              DestinationRepositoryDescriptor destination,
                              java.util.Collection<IUDescription> seedUnits,
                              MirrorOptions mirrorOptions,
                              BuildDirectory tempDirectory)
                       throws FacadeException
        Copies installable units from the source repositories to the destination repository. The corresponding artifacts are also copied unless the mirror options specify otherwise.
        Parameters:
        sources - The p2 repositories from which content shall be copied.
        destination - The p2 repository that shall be written to. The location must be a directory, which may be empty. Existing content is not overwritten but is appended to.
        seedUnits - A set of installable units that span the content to be mirrored. May be null if all available IUs shall be copied. The given installable units will be checked if they are actually present in the source repositories.
        mirrorOptions - various mirror options. Must not be null.
        tempDirectory - A directory for storing temporary results. Typically the build target folder of a module.
        Throws:
        FacadeException - if a checked exception occurs while mirroring