| com.izforge.izpack.compiler.IPackager
All known Subclasses: com.izforge.izpack.compiler.PackagerBase,
IPackager | public interface IPackager (Code) | | Interface for all packager implementations
author: Dennis Reil, |
Method Summary | |
abstract public void | addConfigurationInformation(XMLElement data) Adds configuration information to the packager. | abstract public void | addCustomJar(CustomData ca, URL url) Add a custom data like custom actions, where order is important. | abstract public void | addJarContent(URL jarURL) Adds a jar file content to the installer. | abstract public void | addJarContent(URL jarURL, List<String> files) Adds a jar file content to the installer. | abstract public void | addLangPack(String iso3, URL xmlURL, URL flagURL) Adds a language pack. | abstract public void | addNativeLibrary(String name, URL url) Adds a native library. | abstract public void | addNativeUninstallerLibrary(CustomData data) Marks a native library to be added to the uninstaller. | abstract public void | addPack(PackInfo pack) Adds a pack, order is mostly irrelevant. | abstract public void | addPanelJar(Panel panel, URL jarURL) Add a panel, where order is important. | abstract public void | addResource(String resId, URL url) Adds a resource. | abstract public void | createInstaller(File primaryFile) Create the installer, beginning with the specified jar. | abstract public PackCompressor | getCompressor() | abstract public Map<String, DynamicVariable> | getDynamicVariables() | abstract public PackagerListener | getPackagerListener() Get the PackagerListener. | abstract public List<PackInfo> | getPacksList() | abstract public Map<String, Condition> | getRules() | abstract public Properties | getVariables() Allows access to add, remove and update the variables for the project, which are maintained
in the packager. | abstract public void | initPackCompressor(String compr_format, int compr_level) | abstract public void | setDynamicVariables(Map<String, DynamicVariable> dynamicvariables) | abstract public void | setGUIPrefs(GUIPrefs prefs) Sets the GUI preferences. | abstract public void | setInfo(Info info) Sets the informations related to this installation. | abstract public void | setPackagerListener(PackagerListener listener) Adds a listener. | abstract public void | setRules(Map<String, Condition> rules) |
addConfigurationInformation | abstract public void addConfigurationInformation(XMLElement data)(Code) | | Adds configuration information to the packager.
Parameters: data - - the xml-element packaging from the install.xml |
addCustomJar | abstract public void addCustomJar(CustomData ca, URL url)(Code) | | Add a custom data like custom actions, where order is important. Only one copy of the class
files neeed are inserted in the installer.
Parameters: ca - custom action object Parameters: url - the URL to include once |
addJarContent | abstract public void addJarContent(URL jarURL)(Code) | | Adds a jar file content to the installer. Package structure is maintained. Need mechanism to
copy over signed entry information.
Parameters: jarURL - The url of the jar to add to the installer. We use a URL so the jar may benested within another. |
addJarContent | abstract public void addJarContent(URL jarURL, List<String> files)(Code) | | Adds a jar file content to the installer. Package structure is maintained. Need mechanism to
copy over signed entry information. If the given file list is null the hole contents of the
jar file will be copied else only the listed.
Parameters: jarURL - The url of the jar to add to the installer. We use a URL so the jar may benested within another. Parameters: files - to be copied |
addLangPack | abstract public void addLangPack(String iso3, URL xmlURL, URL flagURL)(Code) | | Adds a language pack.
Parameters: iso3 - The ISO3 code. Parameters: xmlURL - The location of the xml local info Parameters: flagURL - The location of the flag image resource |
addNativeLibrary | abstract public void addNativeLibrary(String name, URL url) throws Exception(Code) | | Adds a native library.
Parameters: name - The native library name. Parameters: url - The url to get the data from. exception: Exception - Description of the Exception |
addNativeUninstallerLibrary | abstract public void addNativeUninstallerLibrary(CustomData data)(Code) | | Marks a native library to be added to the uninstaller.
Parameters: data - the describing custom action data object |
addPack | abstract public void addPack(PackInfo pack)(Code) | | Adds a pack, order is mostly irrelevant.
Parameters: pack - contains all the files and items that go with a pack |
addPanelJar | abstract public void addPanelJar(Panel panel, URL jarURL)(Code) | | Add a panel, where order is important. Only one copy of the class files neeed are inserted in
the installer.
|
addResource | abstract public void addResource(String resId, URL url)(Code) | | Adds a resource.
Parameters: resId - The resource Id. Parameters: url - The location of the data |
createInstaller | abstract public void createInstaller(File primaryFile) throws Exception(Code) | | Create the installer, beginning with the specified jar. If the name specified does not end in
".jar", it is appended. If secondary jars are created for packs (if the Info object added has
a webDirURL set), they are created in the same directory, named sequentially by inserting
".pack#" (where '#' is the pack number) ".jar" suffix: e.g. "foo.pack1.jar". If any file
exists, it is overwritten.
|
getCompressor | abstract public PackCompressor getCompressor()(Code) | | Returns the current pack compressor
Returns the current pack compressor. |
getPackagerListener | abstract public PackagerListener getPackagerListener()(Code) | | Get the PackagerListener.
the current PackagerListener |
getVariables | abstract public Properties getVariables()(Code) | | Allows access to add, remove and update the variables for the project, which are maintained
in the packager.
map of variable names to values |
initPackCompressor | abstract public void initPackCompressor(String compr_format, int compr_level) throws CompilerException(Code) | | Initializes a pack compressor if supported by the packager
Parameters: compr_format - Parameters: compr_level - |
setGUIPrefs | abstract public void setGUIPrefs(GUIPrefs prefs)(Code) | | Sets the GUI preferences.
Parameters: prefs - The new gUIPrefs value |
setInfo | abstract public void setInfo(Info info) throws Exception(Code) | | Sets the informations related to this installation.
Parameters: info - The info section. exception: Exception - Description of the Exception |
setPackagerListener | abstract public void setPackagerListener(PackagerListener listener)(Code) | | Adds a listener.
Parameters: listener - The listener. |
|
|