fix to getArtifactReference beeing removed from LegacyArtifactPath

git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@611119 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nicolas De Loof 2008-01-11 09:18:13 +00:00
parent dbf1b87854
commit 9e7a167d4a
1 changed files with 8 additions and 1 deletions

View File

@ -67,7 +67,14 @@ public class AddLegacyArtifactPathAction
public String commit() public String commit()
{ {
ArtifactReference artifact = this.legacyArtifactPath.getArtifactReference(); ArtifactReference artifact = new ArtifactReference();
artifact.setGroupId( this.legacyArtifactPath.getGroupId() );
artifact.setArtifactId( this.legacyArtifactPath.getArtifactId() );
artifact.setClassifier( this.legacyArtifactPath.getClassifier() );
artifact.setVersion( this.legacyArtifactPath.getVersion() );
artifact.setType( this.legacyArtifactPath.getType() );
String path = repositoryContent.toPath( artifact ); String path = repositoryContent.toPath( artifact );
if ( ! path.equals( this.legacyArtifactPath.getPath() ) ) if ( ! path.equals( this.legacyArtifactPath.getPath() ) )
{ {