Package com.bazaarvoice.maven.plugin.s3repo.support

Examples of com.bazaarvoice.maven.plugin.s3repo.support.LocalYumRepoFacade


    /**
     * Create a {@link com.bazaarvoice.maven.plugin.s3repo.support.LocalYumRepoFacade} which will allow us to query and
     * operate on a local (on-disk) yum repository.
     */
    private LocalYumRepoFacade determineLocalYumRepo(S3RepositoryPath s3RepositoryPath) {
        return new LocalYumRepoFacade(
            s3RepositoryPath.hasBucketRelativeFolder()
                ? new File(stagingDirectory, s3RepositoryPath.getBucketRelativeFolder())
                : stagingDirectory, createrepo, "", getLog());
    }
View Full Code Here


    private void maybeValidateRepository(RebuildContext context) throws MojoExecutionException {
        if (doNotValidate) {
            return;
        }
        getLog().info("Validating downloaded repository...");
        LocalYumRepoFacade localYumRepo = context.getLocalYumRepo();
        if (!localYumRepo.isRepoDataExists()) {
            throw new MojoExecutionException("Repository does not exist!");
        }
        // list of files (repo-relative paths)
        List<String> fileList = localYumRepo.parseFileListFromRepoMetadata();
        for (String repoRelativePath : fileList) {
            if (!context.getExcludedFiles().contains(repoRelativePath)
                && !localYumRepo.hasFile(repoRelativePath)) {
                // repository metadata declared a (non-excluded) file that did not exist.
                throw new MojoExecutionException("Repository metadata declared file " + repoRelativePath + " but the file did not exist.");
            }
        }
    }
View Full Code Here

        }
    }

    /** Create a {@link com.bazaarvoice.maven.plugin.s3repo.support.LocalYumRepoFacade} which will allow us to query and operate on a local (on-disk) yum repository. */
    private LocalYumRepoFacade determineLocalYumRepo() {
        return new LocalYumRepoFacade(stagingDirectory, createrepo, getLog());
    }
View Full Code Here

    private void maybeValidateRepository(RebuildContext context) throws MojoExecutionException {
        if (doNotValidate) {
            return;
        }
        getLog().info("Validating downloaded repository...");
        LocalYumRepoFacade localYumRepo = context.getLocalYumRepo();
        if (!localYumRepo.isRepoDataExists()) {
            throw new MojoExecutionException("Repository does not exist!");
        }
        // list of files (repo-relative paths)
        List<String> fileList = localYumRepo.parseFileListFromRepoMetadata();
        for (String repoRelativePath : fileList) {
            if (!context.getExcludedFiles().contains(repoRelativePath)
                && !localYumRepo.hasFile(repoRelativePath)) {
                // repository metadata declared a (non-excluded) file that did not exist.
                throw new MojoExecutionException("Repository metadata declared file " + repoRelativePath + " but the file did not exist.");
            }
        }
    }
View Full Code Here

        }
    }

    /** Create a {@link com.bazaarvoice.maven.plugin.s3repo.support.LocalYumRepoFacade} which will allow us to query and operate on a local (on-disk) yum repository. */
    private LocalYumRepoFacade determineLocalYumRepo() {
        return new LocalYumRepoFacade(stagingDirectory, createrepo, createrepoOpts, getLog());
    }
View Full Code Here

        maybeUploadRepositoryUpdate(context);
    }

    /** Create a {@link LocalYumRepoFacade} which will allow us to query and operate on a local (on-disk) yum repository. */
    private LocalYumRepoFacade determineLocalYumRepo() {
        return new LocalYumRepoFacade(stagingDirectory, createrepo, createrepoOpts, getLog());
    }
View Full Code Here

        maybeUploadRepositoryUpdate(context);
    }

    /** Create a {@link LocalYumRepoFacade} which will allow us to query and operate on a local (on-disk) yum repository. */
    private LocalYumRepoFacade determineLocalYumRepo() {
        return new LocalYumRepoFacade(stagingDirectory, createrepo, createrepoOpts, getLog());
    }
View Full Code Here

    private void maybeValidateRepository(RebuildContext context) throws MojoExecutionException {
        if (doNotValidate) {
            return;
        }
        getLog().info("Validating downloaded repository...");
        LocalYumRepoFacade localYumRepo = context.getLocalYumRepo();
        if (!localYumRepo.isRepoDataExists()) {
            throw new MojoExecutionException("Repository does not exist!");
        }
        // list of files (repo-relative paths)
        List<String> fileList = localYumRepo.parseFileListFromRepoMetadata();
        for (String repoRelativePath : fileList) {
            if (!context.getExcludedFiles().contains(repoRelativePath)
                && !localYumRepo.hasFile(repoRelativePath)) {
                // repository metadata declared a (non-excluded) file that did not exist.
                throw new MojoExecutionException("Repository metadata declared file " + repoRelativePath + " but the file did not exist.");
            }
        }
    }
View Full Code Here

        }
    }

    /** Create a {@link com.bazaarvoice.maven.plugin.s3repo.support.LocalYumRepoFacade} which will allow us to query and operate on a local (on-disk) yum repository. */
    private LocalYumRepoFacade determineLocalYumRepo() {
        return new LocalYumRepoFacade(stagingDirectory, createrepo, createrepoOpts, getLog());
    }
View Full Code Here

        maybeUploadRepositoryUpdate(context);
    }

    /** Create a {@link LocalYumRepoFacade} which will allow us to query and operate on a local (on-disk) yum repository. */
    private LocalYumRepoFacade determineLocalYumRepo() {
        return new LocalYumRepoFacade(stagingDirectory, createrepo, createrepoOpts, getLog());
    }
View Full Code Here

TOP

Related Classes of com.bazaarvoice.maven.plugin.s3repo.support.LocalYumRepoFacade

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.