public final class SharedFunctions extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_BYTE_SIZE
I want a buffer that is an array with 1024 elements of bytes.
|
| Modifier | Constructor and Description |
|---|---|
private |
SharedFunctions()
Making the constructor private because the class only contains static methods.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
copyFile(org.apache.maven.plugin.logging.Log log,
File fromFile,
File toFile)
|
static void |
initDirectory(org.apache.maven.plugin.logging.Log log,
File workingDirectory)
Cleans and then initializes an empty directory that is given by the
workingDirectory
parameter. |
public static final int BUFFER_BYTE_SIZE
private SharedFunctions()
public static void initDirectory(org.apache.maven.plugin.logging.Log log,
File workingDirectory)
throws org.apache.maven.plugin.MojoExecutionException
workingDirectory
parameter.log - is the Maven log for output logging, particularly in regards to error management.workingDirectory - is a File that represents the directory to first attempt to delete then create.org.apache.maven.plugin.MojoExecutionException - when an IOException or NullPointerException is caught for the
purpose of bubbling the exception up to Maven properly.public static void copyFile(org.apache.maven.plugin.logging.Log log,
File fromFile,
File toFile)
throws org.apache.maven.plugin.MojoExecutionException
log - the Log, the maven logger.fromFile - the File from which to copy.toFile - the File to which to copy into.org.apache.maven.plugin.MojoExecutionException - if an IOException or NullPointerException is caught.Copyright © 2018 The Apache Software Foundation. All rights reserved.