maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r552509 - /maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java
Date Mon, 02 Jul 2007 15:10:25 GMT
Author: markh
Date: Mon Jul  2 08:10:24 2007
New Revision: 552509

URL: http://svn.apache.org/viewvc?view=rev&rev=552509
Log:
Added simple implementations of pathOf and pathOfLocalRepositoryMetadata.

Modified:
    maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java

Modified: maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java
URL: http://svn.apache.org/viewvc/maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java?view=diff&rev=552509&r1=552508&r2=552509
==============================================================================
--- maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java
(original)
+++ maven/shared/trunk/maven-plugin-testing-harness/src/main/java/org/apache/maven/plugin/testing/stubs/StubArtifactRepository.java
Mon Jul  2 08:10:24 2007
@@ -42,8 +42,7 @@
 
     public String pathOf( Artifact artifact )
     {
-        // TODO Auto-generated method stub
-        return null;
+        return artifact.getId();
     }
 
     public String pathOfRemoteRepositoryMetadata( ArtifactMetadata artifactMetadata )
@@ -54,8 +53,7 @@
 
     public String pathOfLocalRepositoryMetadata( ArtifactMetadata metadata, ArtifactRepository
repository )
     {
-        // TODO Auto-generated method stub
-        return null;
+        return metadata.getLocalFilename( repository );
     }
 
     public String getUrl()



Mime
View raw message