diff options
author | Joakim Erdfelt <joakime@apache.org> | 2007-10-17 16:54:27 +0000 |
---|---|---|
committer | Joakim Erdfelt <joakime@apache.org> | 2007-10-17 16:54:27 +0000 |
commit | acdff6dcc100d4959105ae788bfa2a4d69fc2a3c (patch) | |
tree | 40ad4d55a84ec3359ee153818b3d018bc3c8eab8 | |
parent | 568312aa1fa711614687893de3cce974c552dd12 (diff) | |
download | archiva-acdff6dcc100d4959105ae788bfa2a4d69fc2a3c.tar.gz archiva-acdff6dcc100d4959105ae788bfa2a4d69fc2a3c.zip |
Adding ability to create an ArchivaArtifact from an ArtifactReference.
git-svn-id: https://svn.apache.org/repos/asf/maven/archiva/trunk@585573 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/ArchivaArtifact.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/ArchivaArtifact.java b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/ArchivaArtifact.java index d7341dd15..1ebed65ea 100644 --- a/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/ArchivaArtifact.java +++ b/archiva-base/archiva-model/src/main/java/org/apache/maven/archiva/model/ArchivaArtifact.java @@ -77,6 +77,11 @@ public class ArchivaArtifact model.setSnapshot( VersionUtil.isSnapshot( model.getVersion() ) ); this.baseVersion = VersionUtil.getBaseVersion( model.getVersion() ); } + + public ArchivaArtifact( ArtifactReference ref ) + { + this( ref.getGroupId(), ref.getArtifactId(), ref.getVersion(), ref.getClassifier(), ref.getType() ); + } public ArchivaArtifactModel getModel() { |