]> source.dussan.org Git - archiva.git/commitdiff
fix to getArtifactReference beeing removed from LegacyArtifactPath
authorNicolas De Loof <nicolas@apache.org>
Fri, 11 Jan 2008 09:18:13 +0000 (09:18 +0000)
committerNicolas De Loof <nicolas@apache.org>
Fri, 11 Jan 2008 09:18:13 +0000 (09:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@611119 13f79535-47bb-0310-9956-ffa450edef68

archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/admin/legacy/AddLegacyArtifactPathAction.java

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