org.codehaus.mojo.dependency
public class DependencyUtil extends Object
Method Summary | |
---|---|
protected static void | copyFile(File artifact, File destFile, Log log)
Does the actual copy of the file and logging.
|
static String | getFormattedFileName(Artifact artifact, boolean removeVersion)
Builds the file name. |
protected static void | unpackFile(Artifact artifact, File unpackDirectory, File markersDirectory, ArchiverManager archiverManager, Log log)
Unpacks the archive file, checking for a marker file to see if it should unpack again. |
Parameters: artifact represents the file to copy. destFile file name of destination file. log to use for output.
Throws: MojoExecutionException with a message if an error occurs.
Parameters: artifact File to be formatted. removeVersion Specifies if the version should be removed from the file name.
Returns: Formatted file name in the format artifactId-[classifier-][version].[type]
Parameters: Artifact File to be unpacked. unpackDirectory Location where to put the unpacked files.