public class ZipEntrySourceCollectionBuilder extends Object
ZipEntrySourceCollection that allows to build a collection using provided
source files as well as source zip files.| Constructor and Description |
|---|
ZipEntrySourceCollectionBuilder(com.google.common.collect.ImmutableSet<Pattern> entriesToExclude,
OnDuplicateEntry onDuplicateEntryAction) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFile(String entryName,
Path sourceFilePath)
Add the given file as a source for an entry with the provided name.
|
void |
addZipFile(Path zipFilePath)
Add all entries of a given zip file to the collection (excluding entries that match
excludedEntriesMatcher. |
ZipEntrySourceCollection |
build() |
public ZipEntrySourceCollectionBuilder(com.google.common.collect.ImmutableSet<Pattern> entriesToExclude, OnDuplicateEntry onDuplicateEntryAction)
public void addFile(String entryName, Path sourceFilePath)
public void addZipFile(Path zipFilePath) throws IOException
excludedEntriesMatcher.IOExceptionpublic ZipEntrySourceCollection build()