Package org.eclipse.tycho.p2.facade.internal

Examples of org.eclipse.tycho.p2.facade.internal.TychoP2RuntimeLocator


        List<org.eclipse.tycho.core.TargetEnvironment> original = TychoProjectUtils.getTargetPlatformConfiguration(
                project).getEnvironments();
        List<TargetEnvironment> converted = new ArrayList<TargetEnvironment>(original.size());
        for (org.eclipse.tycho.core.TargetEnvironment env : original) {
            converted.add(new TargetEnvironment(env.getWs(), env.getOs(), env.getArch()));
        }
        return converted;
    }
View Full Code Here


                throw new MojoFailureException("No content specified for p2 repository");
            }

            RepositoryReferences sources = getVisibleRepositories();

            MirrorApplicationService mirrorApp = p2.getService(MirrorApplicationService.class);
            DestinationRepositoryDescriptor destinationRepoDescriptor = new DestinationRepositoryDescriptor(
                    destination, repositoryName, compress, !createArtifactRepository, true);
            mirrorApp.mirrorReactor(sources, destinationRepoDescriptor, rootIUs, getBuildContext(),
                    includeAllDependencies, new MavenLoggerAdapter(logger, false));
        } catch (FacadeException e) {
            throw new MojoExecutionException("Could not assemble p2 repository", e);
        }
    }
View Full Code Here

    /** @component */
    private EquinoxServiceFactory osgiServices;

    public final void execute() throws MojoExecutionException, MojoFailureException {
        PublisherService publisherService = createPublisherService();
        try {
            Collection<?> units = publishContent(publisherService);
            postPublishedIUs(units);
        } finally {
            publisherService.stop();
        }
    }
View Full Code Here

    private PublisherService createPublisherService() throws MojoExecutionException, MojoFailureException {
        try {
            RepositoryReferences contextRepositories = repositoryReferenceTool.getVisibleRepositories(getProject(),
                    getSession(), 0);

            PublisherServiceFactory publisherServiceFactory = osgiServices.getService(PublisherServiceFactory.class);
            File publisherRepoLocation = new File(getBuildDirectory(),
                    RepositoryReferenceTool.PUBLISHER_REPOSITORY_PATH);
            return publisherServiceFactory.createPublisher(publisherRepoLocation, contextRepositories,
                    getBuildContext());
        } catch (FacadeException e) {
            throw new MojoExecutionException("Exception while initializing the publisher service", e);
        }
    }
View Full Code Here

TOP

Related Classes of org.eclipse.tycho.p2.facade.internal.TychoP2RuntimeLocator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.