]> source.dussan.org Git - archiva.git/commitdiff
updated api
authorBrett Porter <brett@apache.org>
Sun, 15 Jan 2006 00:32:18 +0000 (00:32 +0000)
committerBrett Porter <brett@apache.org>
Sun, 15 Jan 2006 00:32:18 +0000 (00:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@369129 13f79535-47bb-0310-9956-ffa450edef68

maven-repository-application/src/main/java/org/apache/maven/repository/manager/cli/IndexCli.java

index 534b0827d41842fad758750f03013800cbe12462..edbcc856850a1757dba514280522fb2a63ad6a2b 100644 (file)
@@ -41,6 +41,10 @@ import java.util.List;
  */
 public class IndexCli
 {
+    private IndexCli()
+    {
+    }
+
     public static void main( String[] args )
         throws PlexusContainerException, ComponentLookupException, RepositoryIndexException, MalformedURLException
     {
@@ -62,7 +66,7 @@ public class IndexCli
 
         ArtifactDiscoverer discoverer = (ArtifactDiscoverer) embedder.lookup( ArtifactDiscoverer.ROLE, "legacy" );
 
-        List artifacts = discoverer.discoverArtifacts( new File( repository.getBasedir() ), null, false );
+        List artifacts = discoverer.discoverArtifacts( repository, null, false );
 
         ArtifactRepositoryIndex index =
             indexFactory.createArtifactRepositoryIndex( new File( args[0], ".index" ).getAbsolutePath(), repository );