Package org.apache.maven.index.packer
Class DefaultIndexPacker
java.lang.Object
org.apache.maven.index.packer.DefaultIndexPacker
- All Implemented Interfaces:
IndexPacker
A default
IndexPacker
implementation. Creates the properties, legacy index zip and new gz files.- Author:
- Tamas Cservenak, Eugene Kuleshov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected org.slf4j.Logger
void
packIndex
(IndexPackingRequest request) Pack a context into a target directory.
-
Constructor Details
-
DefaultIndexPacker
-
-
Method Details
-
getLogger
protected org.slf4j.Logger getLogger() -
packIndex
Description copied from interface:IndexPacker
Pack a context into a target directory. If the directory does not exists, it will be created. If the directory exists, it should be writable.- Specified by:
packIndex
in interfaceIndexPacker
- Parameters:
request
- the request to process.- Throws:
IOException
- on lethal IO problemIllegalArgumentException
- when the targetDir already exists and is not a writable directory.
-