com.bazaarvoice.maven.plugin.s3repo.create.RepoStatistics Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of s3repo-maven-plugin Show documentation
Show all versions of s3repo-maven-plugin Show documentation
Create or update an S3 YUM repository.
package com.bazaarvoice.maven.plugin.s3repo.create;
import org.apache.maven.plugin.MojoExecutionException;
public class RepoStatistics {
static RepoStatistics createRepoStatisticsFromCreateOrUpdateContext(CreateOrUpdateContext context) throws MojoExecutionException {
if (context.getLocalYumRepo().isRepoDataExists()) {
return new RepoStatistics(context.getLocalYumRepo().parseFileListFromRepoMetadata().size());
} else {
return new RepoStatistics(0);
}
}
private final int numPackages;
private RepoStatistics(final int numPackages) {
this.numPackages = numPackages;
}
public int getNumPackages() {
return numPackages;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy