|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.compiler.PackagerBase
com.izforge.izpack.compiler.Packager
public class Packager
The packager class. The packager is used by the compiler to put files into an installer, and create the actual installer files.
Field Summary | |
---|---|
private JarOutputStream |
primaryJarStream
Executable zipped output stream. |
Fields inherited from class com.izforge.izpack.compiler.PackagerBase |
---|
alreadyWrittenFiles, baseFile, compressor, customDataList, dynamicvariables, guiPrefs, includedJarURLs, info, installerResourceURLMap, langpackNameList, listener, packJarsSeparate, packsList, panelList, rules, SKELETON_SUBPATH, variables |
Constructor Summary | |
---|---|
Packager()
The constructor. |
|
Packager(java.lang.String compr_format)
Extended constructor. |
|
Packager(java.lang.String compr_format,
int compr_level)
Extended constructor. |
Method Summary | |
---|---|
void |
addConfigurationInformation(XMLElement data)
Adds configuration information to the packager. |
private void |
copyZip(java.util.zip.ZipInputStream zin,
org.apache.tools.zip.ZipOutputStream out)
Copies contents of one jar to another. |
private void |
copyZip(java.util.zip.ZipInputStream zin,
org.apache.tools.zip.ZipOutputStream out,
java.util.List<java.lang.String> files)
Copies specified contents of one jar to another. |
private java.util.jar.Pack200.Packer |
createAgressivePack200Packer()
|
void |
createInstaller(java.io.File primaryFile)
Create the installer, beginning with the specified jar. |
private JarOutputStream |
getJarOutputStream(java.lang.String name)
Return a stream for the next jar. |
private boolean |
isNotSignedJar(java.io.File file)
|
protected void |
writeIncludedJars()
Copy included jars to primary jar. |
protected void |
writeInstallerObject(java.lang.String entryName,
java.lang.Object object)
Write an arbitrary object to primary jar. |
protected void |
writeInstallerResources()
Write the data referenced by URL to primary jar. |
protected void |
writePacks()
Write Packs to primary jar or each to a separate jar. |
protected void |
writeSkeletonInstaller()
Write skeleton installer to primary jar. |
Methods inherited from class com.izforge.izpack.compiler.PackagerBase |
---|
addCustomJar, addInstallerRequirements, addJarContent, addJarContent, addLangPack, addNativeLibrary, addNativeUninstallerLibrary, addPack, addPanelJar, addResource, getCompressor, getDynamicVariables, getPackagerListener, getPacksList, getRules, getVariables, initPackCompressor, sendMsg, sendMsg, sendStart, sendStop, setDynamicVariables, setGUIPrefs, setInfo, setPackagerListener, setRules, writeInstaller |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private JarOutputStream primaryJarStream
Constructor Detail |
---|
public Packager() throws CompilerException
CompilerException
public Packager(java.lang.String compr_format) throws CompilerException
compr_format
- Compression format to be used for packs
compression format (if supported)
CompilerException
public Packager(java.lang.String compr_format, int compr_level) throws CompilerException
compr_format
- Compression format to be used for packscompr_level
- Compression level to be used with the chosen
compression format (if supported)
CompilerException
Method Detail |
---|
public void createInstaller(java.io.File primaryFile) throws java.lang.Exception
IPackager
java.lang.Exception
protected void writeSkeletonInstaller() throws java.io.IOException
writeSkeletonInstaller
in class PackagerBase
java.io.IOException
protected void writeInstallerObject(java.lang.String entryName, java.lang.Object object) throws java.io.IOException
writeInstallerObject
in class PackagerBase
java.io.IOException
protected void writeInstallerResources() throws java.io.IOException
writeInstallerResources
in class PackagerBase
java.io.IOException
protected void writeIncludedJars() throws java.io.IOException
writeIncludedJars
in class PackagerBase
java.io.IOException
protected void writePacks() throws java.lang.Exception
writePacks
in class PackagerBase
java.lang.Exception
private java.util.jar.Pack200.Packer createAgressivePack200Packer()
private boolean isNotSignedJar(java.io.File file) throws java.io.IOException
java.io.IOException
private JarOutputStream getJarOutputStream(java.lang.String name) throws java.io.IOException
java.io.IOException
private void copyZip(java.util.zip.ZipInputStream zin, org.apache.tools.zip.ZipOutputStream out) throws java.io.IOException
java.io.IOException
private void copyZip(java.util.zip.ZipInputStream zin, org.apache.tools.zip.ZipOutputStream out, java.util.List<java.lang.String> files) throws java.io.IOException
java.io.IOException
public void addConfigurationInformation(XMLElement data)
IPackager
data
- - the xml-element packaging from the install.xml
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |