org.codehaus.mojo.dependency

Class CopyMojo

public class CopyMojo extends AbstractFromConfigurationMojo

Goal that copies a list of artifacts from the repository to defined locations.

Author: brianf

UNKNOWN: copy process-sources

Method Summary
protected voidcopyArtifact(ArtifactItem artifactItem, boolean removeVersion)
Resolves the artifact from the repository and copies it to the specified location.
voidexecute()
Main entry into mojo.

Method Detail

copyArtifact

protected void copyArtifact(ArtifactItem artifactItem, boolean removeVersion)
Resolves the artifact from the repository and copies it to the specified location.

Parameters: artifactItem containing the information about the Artifact to copy. removeVersion specifies if the version should be removed from the file name when copying.

Throws: MojoExecutionException with a message if an error occurs.

See Also: DependencyUtil DependencyUtil

execute

public void execute()
Main entry into mojo. This method gets the ArtifactItems and iterates through each one passing it to copyArtifact.

Throws: MojoExecutionException with a message if an error occurs.

See Also: ArtifactItem CopyMojo CopyMojo

Copyright © {inceptionYear}-2007 null. All Rights Reserved.