maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r749060 - in /maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository: LegacyMavenRepositorySystem.java MavenRepositorySystem.java
Date Sun, 01 Mar 2009 16:51:22 GMT
Author: jvanzyl
Date: Sun Mar  1 16:51:22 2009
New Revision: 749060

URL: http://svn.apache.org/viewvc?rev=749060&view=rev
Log:
o Fix compilation error with mirrors

Modified:
    maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java
    maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java

Modified: maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java?rev=749060&r1=749059&r2=749060&view=diff
==============================================================================
--- maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java
(original)
+++ maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/LegacyMavenRepositorySystem.java
Sun Mar  1 16:51:22 2009
@@ -91,6 +91,9 @@
     private ArtifactMetadataSource artifactMetadataSource;
 
     @Requirement
+    private MirrorBuilder mirrorBuilder;
+    
+    @Requirement
     private Logger logger;
 
     private static HashMap<String, Artifact> cache = new HashMap<String, Artifact>();
@@ -626,4 +629,11 @@
     {
         return artifactMetadataSource.retrieveRelocatedArtifact( artifact, localRepository,
remoteRepositories );
     }
+    
+    // Mirror 
+    
+    public void addMirror( String id, String mirrorOf, String url )
+    {
+        mirrorBuilder.addMirror( id, mirrorOf, url );
+    }
 }

Modified: maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java?rev=749060&r1=749059&r2=749060&view=diff
==============================================================================
--- maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java
(original)
+++ maven/components/trunk/maven-repository/src/main/java/org/apache/maven/repository/MavenRepositorySystem.java
Sun Mar  1 16:51:22 2009
@@ -127,4 +127,8 @@
     void addAuthenticationInfo( String repositoryId, String username, String password, String
privateKey, String passphrase );
 
     void addPermissionInfo( String repositoryId, String filePermissions, String directoryPermissions
);
+    
+    // Mirrors
+    
+    void addMirror( String id, String mirrorOf, String url );
 }



Mime
View raw message