Class CopyUtil
java.lang.Object
org.apache.maven.plugins.dependency.utils.CopyUtil
Provide a copyFile method in one place.
- Since:
- 3.7.0
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidcopyArtifactFile(org.apache.maven.artifact.Artifact sourceArtifact, File destination) Copies the artifact (file)voidCopies a file to a destination and refreshes the build context for the new file.
- 
Constructor Details- 
CopyUtil@Inject public CopyUtil(org.sonatype.plexus.build.incremental.BuildContext buildContext) 
 
- 
- 
Method Details- 
copyArtifactFilepublic void copyArtifactFile(org.apache.maven.artifact.Artifact sourceArtifact, File destination) throws IOException, org.apache.maven.plugin.MojoExecutionException Copies the artifact (file)- Parameters:
- sourceArtifact- the artifact (file) to copy
- destination- file name of destination file
- Throws:
- IOException- if copy has failed
- org.apache.maven.plugin.MojoExecutionException- if artifact file is a directory (which has not been packaged yet)
- Since:
- 3.7.0
 
- 
copyFileCopies a file to a destination and refreshes the build context for the new file.- Parameters:
- source- the source file to copy
- destination- the destination file
- Throws:
- IOException- if copy has failed
- Since:
- 3.2.0
 
 
-