maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jvan...@apache.org
Subject svn commit: r414665 - in /maven/repository-manager/trunk/maven-repository-core/src: main/java/org/apache/maven/repository/DefaultRepositoryManager.java test/java/org/apache/maven/repository/RepositoryManagerTest.java
Date Thu, 15 Jun 2006 20:00:34 GMT
Author: jvanzyl
Date: Thu Jun 15 13:00:33 2006
New Revision: 414665

URL: http://svn.apache.org/viewvc?rev=414665&view=rev
Log:
o little conversion of a repository as a smoke test, relying on the good coverage else where
:-)

Modified:
    maven/repository-manager/trunk/maven-repository-core/src/main/java/org/apache/maven/repository/DefaultRepositoryManager.java
    maven/repository-manager/trunk/maven-repository-core/src/test/java/org/apache/maven/repository/RepositoryManagerTest.java

Modified: maven/repository-manager/trunk/maven-repository-core/src/main/java/org/apache/maven/repository/DefaultRepositoryManager.java
URL: http://svn.apache.org/viewvc/maven/repository-manager/trunk/maven-repository-core/src/main/java/org/apache/maven/repository/DefaultRepositoryManager.java?rev=414665&r1=414664&r2=414665&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-core/src/main/java/org/apache/maven/repository/DefaultRepositoryManager.java
(original)
+++ maven/repository-manager/trunk/maven-repository-core/src/main/java/org/apache/maven/repository/DefaultRepositoryManager.java
Thu Jun 15 13:00:33 2006
@@ -65,7 +65,7 @@
                                                                                    legacyLayout,
null, null );
 
             repository = artifactRepositoryFactory.createArtifactRepository( "default",
-                                                                             legacyRepositoryDirectory.toURL().toString(),
+                                                                             repositoryDirectory.toURL().toString(),
                                                                              defaultLayout,
null, null );
         }
         catch ( MalformedURLException e )

Modified: maven/repository-manager/trunk/maven-repository-core/src/test/java/org/apache/maven/repository/RepositoryManagerTest.java
URL: http://svn.apache.org/viewvc/maven/repository-manager/trunk/maven-repository-core/src/test/java/org/apache/maven/repository/RepositoryManagerTest.java?rev=414665&r1=414664&r2=414665&view=diff
==============================================================================
--- maven/repository-manager/trunk/maven-repository-core/src/test/java/org/apache/maven/repository/RepositoryManagerTest.java
(original)
+++ maven/repository-manager/trunk/maven-repository-core/src/test/java/org/apache/maven/repository/RepositoryManagerTest.java
Thu Jun 15 13:00:33 2006
@@ -2,6 +2,8 @@
 
 import org.codehaus.plexus.PlexusTestCase;
 
+import java.io.File;
+
 /**
  * @author Jason van Zyl
  */
@@ -11,6 +13,12 @@
     public void testLegacyRepositoryConversion()
         throws Exception
     {
+        File legacyRepositoryDirectory = getTestFile( "src/test/maven-1.x-repository" );
+
+        File repositoryDirectory = getTestFile( "target/maven-2.x-repository" );
+
         RepositoryManager rm = (RepositoryManager) lookup( RepositoryManager.ROLE );
+
+        rm.convertLegacyRepository( legacyRepositoryDirectory, repositoryDirectory, true
);
     }
 }



Mime
View raw message