Пример #1
0
 @Override
 public boolean equals(Object obj) {
   if (!(obj instanceof IArtifactKey)) return false;
   IArtifactKey ak = (IArtifactKey) obj;
   return ak.getId().equals(id)
       && ak.getVersion().equals(getVersion())
       && ak.getClassifier().equals(classifier);
 }
 protected GAV getP2GAV(IArtifactDescriptor descriptor) {
   IArtifactKey key = descriptor.getArtifactKey();
   StringBuffer version = new StringBuffer();
   key.getVersion().toString(version);
   return RepositoryLayoutHelper.getP2Gav(key.getClassifier(), key.getId(), version.toString());
 }