Package org.sonatype.nexus.index

Examples of org.sonatype.nexus.index.ArtifactContext


        indexerEngine.beginIndexing( context );

        for ( File artifactFile : filesToBeIndexed )
        {
            ArtifactContext ac = artifactContextProducer.getArtifactContext( context, artifactFile );
            indexerEngine.index( context, ac );
        }

        indexerEngine.endIndexing( context );
        indexer.removeIndexingContext( context, false );
View Full Code Here


                    File artifactFile = new File( repoContent.getRepoRoot(), repoContent.toPath( artifact ) );

                    if ( !artifactFile.exists() )
                    {
                        ArtifactContext artifactContext =
                            artifactContextProducer.getArtifactContext( context, artifactFile );

                        if ( artifactContext != null )
                        {
                            //indexerEngine.remove( context, artifactContext );
View Full Code Here

            // didn't start correctly, so skip
            return;
        }
       
        File artifactFile = new File( managedRepository, path );       
        ArtifactContext artifactContext = artifactContextProducer.getArtifactContext( context, artifactFile );
       
        if ( artifactContext != null )
        {
            try
            {               
                ArtifactInfo ai = artifactContext.getArtifactInfo();               
                String uinfo = AbstractIndexCreator.getGAV(
                    ai.groupId, ai.artifactId, ai.version, ai.classifier, ai.packaging );
               
                // already indexed so update!
                if ( uinfos.contains( uinfo ) )
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.index.ArtifactContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.