Package aQute.bnd.deployer.repository

Examples of aQute.bnd.deployer.repository.FixedIndexedRepo.reset()


    @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


    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

        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

    @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
Copyright © 2018 www.massapi.com. 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.