예제 #1
0
  private RepoPath getMetadataRepoPath(RepoPath parentRepoPath, String metadataName) {
    String path = parentRepoPath.getPath();
    boolean alreadyMetadataPath = NamingUtils.isMetadata(path);
    if (alreadyMetadataPath) {
      log.warn("Path {} is already a metadata path.", path);
    }
    // TODO: [by yl] Evaluate the impact of normalizing the path to use the standard metadata format
    // (a.jar#mdname)

    return InternalRepoPathFactory.create(
        parentRepoPath.getRepoKey(),
        alreadyMetadataPath ? path : NamingUtils.getMetadataPath(path, metadataName));
  }
예제 #2
0
 public MetadataInfoImpl(RepoPath repoPath) {
   this.repoPath = repoPath;
   this.name = NamingUtils.getMetadataName(repoPath.getPath());
   this.checksumsInfo = new ChecksumsInfo();
 }