@Named @Singleton public class CopyUtil extends Object
| Constructor and Description |
|---|
CopyUtil(org.sonatype.plexus.build.incremental.BuildContext buildContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
copyArtifactFile(org.apache.maven.artifact.Artifact sourceArtifact,
File destination)
Copies the artifact (file).
|
@Inject public CopyUtil(org.sonatype.plexus.build.incremental.BuildContext buildContext)
public void copyArtifactFile(org.apache.maven.artifact.Artifact sourceArtifact,
File destination)
throws IOException,
org.apache.maven.plugin.MojoExecutionException
sourceArtifact - represents the artifact (file) to copydestination - file name of destination fileIOException - if copy has failedorg.apache.maven.plugin.MojoExecutionException - if artifact file is a directory (which has not been packaged yet)Copyright © 2002–2024 The Apache Software Foundation. All rights reserved.