@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)
Does the actual copy of the artifact (file) and logging.
|
@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 copy.destination
- file name of destination file.IOException
- 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.