Package org.apache.maven.index.packer

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


    // 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

            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

            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

TOP

Related Classes of org.apache.maven.index.packer.IndexPackingRequest

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.