@Component(role=IndexPacker.class) public class DefaultIndexPacker extends org.codehaus.plexus.logging.AbstractLogEnabled implements IndexPacker
IndexPacker
implementation. Creates the properties, legacy index zip and new gz files.ROLE
Constructor and Description |
---|
DefaultIndexPacker() |
Modifier and Type | Method and Description |
---|---|
void |
packIndex(IndexPackingRequest request)
Pack a context into a target directory.
|
static void |
packIndexArchive(IndexingContext context,
OutputStream os)
Pack legacy index archive into a specified output stream
|
public void packIndex(IndexPackingRequest request) throws IOException, IllegalArgumentException
IndexPacker
packIndex
in interface IndexPacker
IOException
- on lethal IO problemIllegalArgumentException
- when the targetDir already exists and is not a writable directory.public static void packIndexArchive(IndexingContext context, OutputStream os) throws IOException
IOException
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.