use the correct repository for finding the original snapshot data

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@240414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-08-27 12:48:12 +00:00
parent 0481c45fc9
commit 14f4c980c1
1 changed files with 5 additions and 3 deletions

View File

@ -35,10 +35,12 @@ public class DefaultArtifactDeployer
implements ArtifactDeployer implements ArtifactDeployer
{ {
private WagonManager wagonManager; private WagonManager wagonManager;
private ArtifactTransformationManager transformationManager; private ArtifactTransformationManager transformationManager;
/** @deprecated we want to use the artifact method only, and ensure artifact.file is set correctly. */ /**
* @deprecated we want to use the artifact method only, and ensure artifact.file is set correctly.
*/
public void deploy( String basedir, String finalName, Artifact artifact, ArtifactRepository deploymentRepository, public void deploy( String basedir, String finalName, Artifact artifact, ArtifactRepository deploymentRepository,
ArtifactRepository localRepository ) ArtifactRepository localRepository )
throws ArtifactDeploymentException throws ArtifactDeploymentException
@ -54,7 +56,7 @@ public class DefaultArtifactDeployer
{ {
try try
{ {
transformationManager.transformForDeployment( artifact, localRepository ); transformationManager.transformForDeployment( artifact, deploymentRepository );
// Copy the original file to the new one if it was transformed // Copy the original file to the new one if it was transformed
File artifactFile = new File( localRepository.getBasedir(), localRepository.pathOf( artifact ) ); File artifactFile = new File( localRepository.getBasedir(), localRepository.pathOf( artifact ) );