public class RadLibCopier extends AbstractEclipseWriter
config, log| Constructor and Description |
|---|
RadLibCopier() |
| Modifier and Type | Method and Description |
|---|---|
private void |
copyArtifact(IdeDependency[] deps,
java.io.File destDir)
Copies the Artifact after building the destination file name if overridden.
|
private 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.
|
private void |
handleEarLibs(IdeDependency[] deps)
EARs need the jars in the root directory.
|
private void |
handleWarLibs(IdeDependency[] deps)
WARs need the jars in the WEB-INF/lib directory.
|
void |
write()
copy the jars in the apropreate directorys.
|
initpublic void write()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - when writing the config files was not possibleprivate void copyArtifact(IdeDependency[] deps, java.io.File destDir) throws org.apache.maven.plugin.MojoExecutionException
deps - representing the dependencies to be copied.destDir - where should the atifact go.org.apache.maven.plugin.MojoExecutionException - with a message if an error occurs.DependencyUtil#copyFile(File, File, Log),
DependencyUtil#getFormattedFileName(Artifact, boolean)private 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.private void handleEarLibs(IdeDependency[] deps) throws org.apache.maven.plugin.MojoExecutionException
deps - dependencys to includeorg.apache.maven.plugin.MojoExecutionException - if the copying failsprivate void handleWarLibs(IdeDependency[] deps) throws org.apache.maven.plugin.MojoExecutionException
deps - dependencys to includeorg.apache.maven.plugin.MojoExecutionException - if the copying fails