Package org.apache.maven.index.packer

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


    }

    public void test2Incremental()
        throws Exception
    {
        IndexPackingRequest request = new IndexPackingRequest( context, indexPackDir );
        request.setCreateIncrementalChunks( true );
        packer.packIndex( request );

        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-1" ), request );
        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-2" ), request );
View Full Code Here


    }

    public void test3Incremental()
        throws Exception
    {
        IndexPackingRequest request = new IndexPackingRequest( context, indexPackDir );
        request.setCreateIncrementalChunks( true );
        packer.packIndex( request );

        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-1" ), request );
        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-2" ), request );
        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-3" ), request );
View Full Code Here

    }

    public void testMaxChunks()
        throws Exception
    {
        IndexPackingRequest request = new IndexPackingRequest( context, indexPackDir );
        request.setCreateIncrementalChunks( true );
        request.setMaxIndexChunks( 3 );
        packer.packIndex( request );

        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-1" ), request );
        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-2" ), request );
        copyRepoContentsAndReindex( new File( getBasedir(), "src/test/nexus-1911/repo-inc-3" ), request );
View Full Code Here

        // This test had multiple threads doing it, and since it was not checking actual results of publish (that was
        // not the goal of the test, but simultaneous publishing of merged context that has member changes happening),
        // it was probably publish rubbish anyway.
        final File publish = new File( repoPublish, "publish-" + counter.getAndIncrement() );

        final IndexPackingRequest request = new IndexPackingRequest( context, publish );

        request.setCreateIncrementalChunks( false );

        packer.packIndex( request );

        return 1;
    }
View Full Code Here

        indexingContext.optimize();

        File managedRepository = new File( repoIndex );
        final File indexLocation = new File( managedRepository, ".index" );
        IndexPackingRequest request = new IndexPackingRequest( indexingContext, indexLocation );
        indexPacker.packIndex( request );

    }
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

            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

            File managedRepository = new File( repository.getLocation() );
            String indexDirectory = repository.getIndexDirectory();
            final File indexLocation = StringUtils.isBlank( indexDirectory )
                ? new File( managedRepository, ".indexer" )
                : new File( indexDirectory );
            IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
            indexPacker.packIndex( request );
            context.updateTimestamp( true );

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

                File managedRepository = new File( repository.getLocation() );
                String indexDirectory = repository.getIndexDirectory();
                final File indexLocation = StringUtils.isBlank( indexDirectory )
                    ? new File( managedRepository, ".indexer" )
                    : new File( indexDirectory );
                IndexPackingRequest request = new IndexPackingRequest( context, indexLocation );
                indexPacker.packIndex( request );
                context.updateTimestamp( true );

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

            indexingContext.optimize();

            if ( packIndex )
            {
                IndexPackingRequest request = new IndexPackingRequest( indexingContext, indexLocation );
                indexPacker.packIndex( request );
            }
            temporaryGroupIndexes.add( new TemporaryGroupIndex( tempRepoFile, tempRepoId ) );
            return indexingContext;
        }
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.