public class Repackager extends Packager
Packager.MainClassTimeoutWarningListener| Constructor and Description | 
|---|
| Repackager(java.io.File source)Create a new  Repackagerinstance. | 
| Repackager(java.io.File source,
          LayoutFactory layoutFactory)Deprecated. 
 since 2.3.10 for removal in 2.5 in favor of  Repackager(File)andPackager.setLayoutFactory(LayoutFactory) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | repackage(java.io.File destination,
         Libraries libraries)Repackage to the given destination so that it can be launched using '
 java -jar'. | 
| void | repackage(java.io.File destination,
         Libraries libraries,
         LaunchScript launchScript)Repackage to the given destination so that it can be launched using '
 java -jar'. | 
| void | repackage(java.io.File destination,
         Libraries libraries,
         LaunchScript launchScript,
         java.nio.file.attribute.FileTime lastModifiedTime)Repackage to the given destination so that it can be launched using '
 java -jar'. | 
| void | repackage(Libraries libraries)Repackage the source file so that it can be run using 'java -jar'. | 
| void | setBackupSource(boolean backupSource)Sets if source files should be backed up when they would be overwritten. | 
addMainClassTimeoutWarningListener, findMainMethod, getBackupFile, getLayout, getSource, isAlreadyPackaged, isAlreadyPackaged, setBackupFile, setIncludeRelevantJarModeJars, setLayers, setLayout, setLayoutFactory, setMainClass, write, writepublic Repackager(java.io.File source)
Repackager instance.source - the source archive file to package@Deprecated
public Repackager(java.io.File source,
                              LayoutFactory layoutFactory)
Repackager(File)
 and Packager.setLayoutFactory(LayoutFactory)Repackager instance.source - the source archive file to packagelayoutFactory - the layout factory to use or nullpublic void setBackupSource(boolean backupSource)
backupSource - if source files should be backed uppublic void repackage(Libraries libraries) throws java.io.IOException
libraries - the libraries required to run the archivejava.io.IOException - if the file cannot be repackagedpublic void repackage(java.io.File destination,
                      Libraries libraries)
               throws java.io.IOException
destination - the destination file (may be the same as the source)libraries - the libraries required to run the archivejava.io.IOException - if the file cannot be repackagedpublic void repackage(java.io.File destination,
                      Libraries libraries,
                      LaunchScript launchScript)
               throws java.io.IOException
destination - the destination file (may be the same as the source)libraries - the libraries required to run the archivelaunchScript - an optional launch script prepended to the front of the jarjava.io.IOException - if the file cannot be repackagedpublic void repackage(java.io.File destination,
                      Libraries libraries,
                      LaunchScript launchScript,
                      java.nio.file.attribute.FileTime lastModifiedTime)
               throws java.io.IOException
destination - the destination file (may be the same as the source)libraries - the libraries required to run the archivelaunchScript - an optional launch script prepended to the front of the jarlastModifiedTime - an optional last modified time to apply to the archive and
 its contentsjava.io.IOException - if the file cannot be repackaged