]> source.dussan.org Git - archiva.git/commitdiff
Submitted by: Maria Odea Ching
authorEdwin L. Punzalan <epunzalan@apache.org>
Thu, 16 Feb 2006 02:54:57 +0000 (02:54 +0000)
committerEdwin L. Punzalan <epunzalan@apache.org>
Thu, 16 Feb 2006 02:54:57 +0000 (02:54 +0000)
- fix error in IndexSearcherCli
- changed ArtifactRepositoryIndexSearcher searcher = indexFactory.createArtifactRepositoryIndexSearcher( index ) to DefaultRepositoryIndexSearcher searcher = indexFactory.createDefaultRepositoryIndexSearcher( index )

git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@378146 13f79535-47bb-0310-9956-ffa450edef68

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

index 86b8e6eaac99bff3ad336eed8fdd46f5215c0f09..f711a269d9b0cf6836f350ed33d95870cf7d54cb 100644 (file)
@@ -20,10 +20,10 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
 import org.apache.maven.artifact.repository.ArtifactRepositoryFactory;
 import org.apache.maven.artifact.repository.layout.ArtifactRepositoryLayout;
 import org.apache.maven.repository.indexing.ArtifactRepositoryIndex;
-import org.apache.maven.repository.indexing.ArtifactRepositoryIndexSearcher;
 import org.apache.maven.repository.indexing.RepositoryIndexException;
 import org.apache.maven.repository.indexing.RepositoryIndexSearchException;
 import org.apache.maven.repository.indexing.RepositoryIndexingFactory;
+import org.apache.maven.repository.indexing.DefaultRepositoryIndexSearcher;
 import org.apache.maven.repository.indexing.query.SinglePhraseQuery;
 import org.codehaus.classworlds.ClassWorld;
 import org.codehaus.plexus.PlexusContainerException;
@@ -62,8 +62,8 @@ public class IndexSearcherCli
 
         ArtifactRepositoryIndex index =
             indexFactory.createArtifactRepositoryIndex( new File( args[0], ".index" ).getAbsolutePath(), repository );
-
-        ArtifactRepositoryIndexSearcher searcher = indexFactory.createArtifactRepositoryIndexSearcher( index );
+              
+        DefaultRepositoryIndexSearcher searcher = indexFactory.createDefaultRepositoryIndexSearcher( index );
 
         try
         {