|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.mojo.dependency.DependencyUtil
public class DependencyUtil
Utility class with static helper methods
| Constructor Summary | |
|---|---|
DependencyUtil()
|
|
| Method Summary | |
|---|---|
protected static void |
copyFile(java.io.File artifact,
java.io.File destFile,
org.apache.maven.plugin.logging.Log log)
Does the actual copy of the file and logging. |
static java.lang.String |
getFormattedFileName(org.apache.maven.artifact.Artifact artifact,
boolean removeVersion)
Builds the file name. |
protected static void |
unpackFile(org.apache.maven.artifact.Artifact artifact,
java.io.File unpackDirectory,
java.io.File markersDirectory,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
org.apache.maven.plugin.logging.Log log)
Unpacks the archive file, checking for a marker file to see if it should unpack again. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DependencyUtil()
| Method Detail |
|---|
protected static void copyFile(java.io.File artifact,
java.io.File destFile,
org.apache.maven.plugin.logging.Log log)
throws org.apache.maven.plugin.MojoExecutionException
artifact - represents the file to copy.destFile - file name of destination file.log - to use for output.
org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.
protected static void unpackFile(org.apache.maven.artifact.Artifact artifact,
java.io.File unpackDirectory,
java.io.File markersDirectory,
org.codehaus.plexus.archiver.manager.ArchiverManager archiverManager,
org.apache.maven.plugin.logging.Log log)
throws org.apache.maven.plugin.MojoExecutionException
Artifact - File to be unpacked.unpackDirectory - Location where to put the unpacked files.
org.apache.maven.plugin.MojoExecutionException
public static java.lang.String getFormattedFileName(org.apache.maven.artifact.Artifact artifact,
boolean removeVersion)
artifact - File to be formatted.removeVersion - Specifies if the version should be removed from the file name.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||