com.bazaarvoice.maven.plugin.s3repo.util.ExtraFileUtils 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.util;
import org.apache.maven.plugin.MojoExecutionException;
import org.codehaus.plexus.util.FileUtils;
import java.io.File;
import java.io.IOException;
public final class ExtraFileUtils {
private ExtraFileUtils() {}
public static void createOrCleanDirectory(File directory) throws MojoExecutionException {
try {
FileUtils.deleteDirectory(directory);
FileUtils.mkdir(directory.getAbsolutePath());
} catch (IOException e) {
throw new MojoExecutionException("Failed to clean or create directory: " + directory, e);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy