ArtifactScanningListener listener = new IndexerListener( context, debug, quiet );
indexer.scan( context, listener, true );
IndexPackingRequest request = new IndexPackingRequest( context, outputFolder );
request.setCreateChecksumFiles( createChecksums );
request.setCreateIncrementalChunks( createIncrementalChunks );
if ( createLegacyIndex )
{
request.setFormats( Arrays.asList( IndexFormat.FORMAT_LEGACY, IndexFormat.FORMAT_V1 ) );
}
else
{
request.setFormats( Arrays.asList( IndexFormat.FORMAT_V1 ) );
}
if ( chunkCount != null )
{
request.setMaxIndexChunks( chunkCount.intValue() );
}
packIndex( packer, request, debug, quiet );
if ( !quiet )