You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jv...@apache.org on 2002/12/11 00:04:36 UTC

cvs commit: jakarta-turbine-maven/src/java/org/apache/maven/repository AbstractArtifact.java Artifact.java

jvanzyl     2002/12/10 15:04:36

  Modified:    src/java/org/apache/maven/repository AbstractArtifact.java
                        Artifact.java
  Log:
  o Adding checksum methods.
  
  Revision  Changes    Path
  1.14      +10 -1     jakarta-turbine-maven/src/java/org/apache/maven/repository/AbstractArtifact.java
  
  Index: AbstractArtifact.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/repository/AbstractArtifact.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- AbstractArtifact.java	10 Dec 2002 02:22:57 -0000	1.13
  +++ AbstractArtifact.java	10 Dec 2002 23:04:36 -0000	1.14
  @@ -133,6 +133,15 @@
                + "/" + getDependency().getArtifact();
       }
   
  +    /** @see Artifact#getChecksumUrl */
  +    public String getChecksumUrl()
  +    {
  +        return "/" + getDependency().getGroupId()
  +             + "/" + getDependency().getType() + "s"
  +             + "/" + getDependency().getArtifact()
  +             + ".md5";
  +    }
  +
       /**
        * Get the name of the artifact from the underlying dependency.
        *
  
  
  
  1.13      +8 -1      jakarta-turbine-maven/src/java/org/apache/maven/repository/Artifact.java
  
  Index: Artifact.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/repository/Artifact.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- Artifact.java	10 Dec 2002 02:22:57 -0000	1.12
  +++ Artifact.java	10 Dec 2002 23:04:36 -0000	1.13
  @@ -115,6 +115,13 @@
       String getUrlPath();
   
       /**
  +     * Return the url to the checksum file for this artifact.
  +     *
  +     * @return URL of the checksum file for this artifact.
  +     */
  +    String getChecksumUrl();
  +
  +    /**
        * Return the name of the artifact.
        *
        * @return Name of the underlying dependency.