git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@414665
13f79535-47bb-0310-9956-
ffa450edef68
legacyLayout, null, null );
repository = artifactRepositoryFactory.createArtifactRepository( "default",
- legacyRepositoryDirectory.toURL().toString(),
+ repositoryDirectory.toURL().toString(),
defaultLayout, null, null );
}
catch ( MalformedURLException e )
import org.codehaus.plexus.PlexusTestCase;
+import java.io.File;
+
/**
* @author Jason van Zyl
*/
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 );
}
}