public class Packr
extends java.lang.Object
| Constructor and Description |
|---|
Packr() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
The main CLI entrance.
|
void |
pack(PackrConfig config)
Process all inputs from
config and create an output bundle in PackrConfig.outDir. |
Packr |
setRemovePlatformLibsFileFilter(java.util.function.Predicate<java.io.File> filter)
Install application-side file filter to specify which (additional) files can be deleted during the removePlatformLibs phase.
|
public static void main(java.lang.String[] args)
args - Should conform to PackrCommandLinepublic Packr setRemovePlatformLibsFileFilter(java.util.function.Predicate<java.io.File> filter)
This filter is checked first, before evaluating the "--removelibs" and "--libs" options.
filter - file filter for removing librariespublic void pack(PackrConfig config) throws java.io.IOException, org.apache.commons.compress.compressors.CompressorException, org.apache.commons.compress.archivers.ArchiveException
config and create an output bundle in PackrConfig.outDir.config - the configuration information for creating an executable and asset bundlejava.io.IOException - if an IO error occursorg.apache.commons.compress.compressors.CompressorException - if a compression error occursorg.apache.commons.compress.archivers.ArchiveException - if an archive error occurs