]> source.dussan.org Git - archiva.git/commitdiff
o little conversion of a repository as a smoke test, relying on the good coverage...
authorJason van Zyl <jvanzyl@apache.org>
Thu, 15 Jun 2006 20:00:33 +0000 (20:00 +0000)
committerJason van Zyl <jvanzyl@apache.org>
Thu, 15 Jun 2006 20:00:33 +0000 (20:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@414665 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-core/src/main/java/org/apache/maven/repository/DefaultRepositoryManager.java
maven-repository-core/src/test/java/org/apache/maven/repository/RepositoryManagerTest.java

index d0940f0b6c09f5afe2c3ce346233c442760e5c4b..e63620338119c1c75ffa362a0e0f7ce703e47563 100644 (file)
@@ -65,7 +65,7 @@ public class DefaultRepositoryManager
                                                                                    legacyLayout, null, null );
 
             repository = artifactRepositoryFactory.createArtifactRepository( "default",
-                                                                             legacyRepositoryDirectory.toURL().toString(),
+                                                                             repositoryDirectory.toURL().toString(),
                                                                              defaultLayout, null, null );
         }
         catch ( MalformedURLException e )
index d56740db48a7af36f24c3e7f9e68d8aef1ad93df..5fb0845908ca918bb8506e4a1ce99b19c40520db 100644 (file)
@@ -2,6 +2,8 @@ package org.apache.maven.repository;
 
 import org.codehaus.plexus.PlexusTestCase;
 
+import java.io.File;
+
 /**
  * @author Jason van Zyl
  */
@@ -11,6 +13,12 @@ public class RepositoryManagerTest
     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 );
     }
 }