Examples of IndexPackingRequest


Examples of org.apache.maven.index.packer.IndexPackingRequest

      targetDir = new File(getTempDirectory(), "nx-index-" + Long.toHexString(System.nanoTime()));

      DirSupport.mkdir(targetDir.toPath());

      IndexPackingRequest packReq = new IndexPackingRequest(context, targetDir);
      packReq.setCreateIncrementalChunks(true);

      // not publishing legacy format anymore
      packReq.setFormats(Arrays.asList(IndexFormat.FORMAT_V1));
      indexPacker.packIndex(packReq);

      File[] files = targetDir.listFiles();

      if (files != null) {
View Full Code Here

Examples of org.apache.maven.index.packer.IndexPackingRequest

    // pack it up
    File targetDir = new File(repositoryRoot, ".index");

    targetDir.mkdirs();

    IndexPackingRequest ipr = new IndexPackingRequest(ctx, targetDir);

    ipr.setCreateIncrementalChunks(true);

    indexPacker.packIndex(ipr);

    nexusIndexer.removeIndexingContext(ctx, deleteIndexFiles);
  }
View Full Code Here

Examples of org.apache.maven.index.packer.IndexPackingRequest

            indexingContext.optimize();

            if ( indexMergerRequest.isPackIndex() )
            {
                IndexPackingRequest request = new IndexPackingRequest( indexingContext, indexLocation );
                indexPacker.packIndex( request );
            }
            temporaryGroupIndexes.add(
                new TemporaryGroupIndex( tempRepoFile, tempRepoId, indexMergerRequest.getGroupId(), indexMergerRequest.getMergedIndexTtl() ) );
            stopWatch.stop();
View Full Code Here

Examples of org.apache.maven.index.packer.IndexPackingRequest

            context.optimize();

            if ( !repository.isSkipPackedIndexCreation() )
            {

                IndexPackingRequest request = new IndexPackingRequest( context, context.getIndexDirectoryFile() );
                indexPacker.packIndex( request );
                context.updateTimestamp( true );

                log.debug( "Index file packaged at '{}'.", context.getIndexDirectoryFile() );
            }
View Full Code Here

Examples of org.sonatype.nexus.index.packer.IndexPackingRequest

                        log.debug( "removing artifact '" + ac.getArtifactInfo() + "' from index.." );
                        indexerEngine.remove( context, ac );
                    }
                   
                    final File indexLocation = new File( managedRepository, ".index" );
                    IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
                    indexPacker.packIndex( request );
                }               
            }
            catch ( IOException e )
            {
View Full Code Here

Examples of org.sonatype.nexus.index.packer.IndexPackingRequest

                {
                    context.optimize();

                    File managedRepository = new File( repository.getLocation() );
                    final File indexLocation = new File( managedRepository, ".index" );
                    IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
                    indexPacker.packIndex( request );

                    log.debug( "Index file packaged at '" + indexLocation.getPath() + "'." );
                }
                catch ( IOException e )
View Full Code Here

Examples of org.sonatype.nexus.index.packer.IndexPackingRequest

                        indexerEngine.remove( context, ac );
                        context.optimize();
                    }
                   
                    final File indexLocation = new File( managedRepository, ".index" );
                    IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
                    indexPacker.packIndex( request );
                   
                    log.debug( "Index file packaged at '" + indexLocation.getPath() + "'." );
                }               
            }
View Full Code Here

Examples of org.sonatype.nexus.index.packer.IndexPackingRequest

        {
            context.optimize();

            File managedRepository = new File( repository.getLocation() );
            final File indexLocation = new File( managedRepository, ".index" );
            IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
            indexPacker.packIndex( request );

            log.debug( "Index file packaged at '" + indexLocation.getPath() + "'." );
        }
        catch ( IOException e )
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.