public class ImagePackager extends Packager
Packager.MainClassTimeoutWarningListener
Constructor and Description |
---|
ImagePackager(java.io.File source,
java.io.File backupFile)
Create a new
ImagePackager instance. |
Modifier and Type | Method and Description |
---|---|
void |
packageImage(Libraries libraries,
java.util.function.BiConsumer<java.util.zip.ZipEntry,EntryWriter> exporter)
Create a packaged image.
|
addMainClassTimeoutWarningListener, findMainMethod, getBackupFile, getLayout, getSource, isAlreadyPackaged, isAlreadyPackaged, setBackupFile, setIncludeRelevantJarModeJars, setLayers, setLayout, setLayoutFactory, setMainClass, write, write
public ImagePackager(java.io.File source, java.io.File backupFile)
ImagePackager
instance.source
- the source file to packagebackupFile
- the backup of the source file to packagepublic void packageImage(Libraries libraries, java.util.function.BiConsumer<java.util.zip.ZipEntry,EntryWriter> exporter) throws java.io.IOException
libraries
- the contained librariesexporter
- the exporter used to write the imagejava.io.IOException
- on IO error