Package aQute.bnd.deployer.repository

Examples of aQute.bnd.deployer.repository.FixedIndexedRepo


    }

    @Descriptor("lists resources in a repository")
    public static void ls(CommandRepo repo, String filter) throws Exception {

        FixedIndexedRepo sourceRepo = repo.repo();
        sourceRepo.reset();

        Requirement requirement = getRequirement(filter);
        List<Resource> resources = findResources(sourceRepo, requirement);

        for (Resource resource : resources) {
View Full Code Here


    }

    @Descriptor("copy resources from one repository to another")
    public static void cp(CommandRepo fromRepo, CommandRepo toRepo, String filter) throws Exception {

        FixedIndexedRepo sourceRepo = fromRepo.repo();
        FixedIndexedRepo targetRepo = toRepo.repo();
        sourceRepo.reset();
        targetRepo.reset();

        Requirement requirement = getRequirement(filter);
        List<Resource> resources = findResources(sourceRepo, requirement);

        for (Resource resource : resources) {
View Full Code Here

    }

    @Descriptor("remove resources from a repository")
    public static void rm(CommandRepo fromRepo, String filter) throws Exception {

        FixedIndexedRepo repo = fromRepo.repo();
        repo.reset();

        Requirement requirement = getRequirement(filter);
        List<Resource> resources = findResources(repo, requirement);

        for (Resource resource : resources) {
View Full Code Here

    }

    @Descriptor("execute a continuous deployment cycle")
    public static List<CommandResource> cd(CommandRepo releaseRepo, CommandRepo sourceRepo, CommandRepo targetRepo) throws Exception {

        FixedIndexedRepo relRepo = releaseRepo.repo();
        FixedIndexedRepo srcRepo = sourceRepo.repo();
        FixedIndexedRepo tgtRepo = targetRepo.repo();
        relRepo.reset();
        srcRepo.reset();
        tgtRepo.reset();

        ContinuousDeployer cd = new ContinuousDeployer(tgtRepo, srcRepo, relRepo);
        try {
            List<Resource> deployedResources = cd.deployResources();
            return CommandResource.wrap(targetRepo, deployedResources);
View Full Code Here

        d(repo, url, null);
    }

    @Descriptor("deploy a resource to a repository")
    public static void d(CommandRepo repo, String url, String filename) throws Exception {
        FixedIndexedRepo toRepo = repo.repo();
        URL location = new URL(url);
        uploadResource(toRepo, location, filename);
        toRepo.reset();
    }
View Full Code Here

TOP

Related Classes of aQute.bnd.deployer.repository.FixedIndexedRepo

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.