| java.lang.Object com.izforge.izpack.compiler.PackInfo
PackInfo | public class PackInfo (Code) | | Temporary holding place for Pack information as the Packager is built. The packager is used by
the compiler to collect info about an installer, and finally create the actual installer files.
author: Chadwick McHenry |
Field Summary | |
final public static int | BLACK | final public static int | GREY | final public static int | WHITE | public int | colour The color of the node. |
Constructor Summary | |
public | PackInfo(String name, String id, String description, boolean required, boolean loose, String excludegroup, boolean uninstall) Constructor with required info. |
Method Summary | |
public void | addDependency(String dependency) | public void | addExecutable(ExecutableFile executable) Executables files have their executable flag set, may be executed, and optionally, deleted
when finished executing. | public void | addFile(File baseDir, File file, String targetfile, List<OsConstraint> osList, int override, Map additionals, String condition) Add a file or directory to be installed.
Parameters: file - the file or basedir to be installed. Parameters: targetfile - path file will be installed to. Parameters: osList - the target operation system(s) of this pack. Parameters: override - what to do if the file already exists when installing Parameters: condition - throws: FileNotFoundException - if the file specified does not exist. | public void | addInstallGroup(String group) Add an install group to the pack. | public void | addParsable(ParsableFile parsable) Parsable files have variables substituted after installation. | public void | addUpdateCheck(UpdateCheck updateCheck) Executables files have their executable flag set, may be executed, and optionally, deleted
when finished executing. | public String | getCondition() | public List<String> | getDependencies() | public List | getExecutables() List of parsables for this Pack. | public File | getFile(PackFile packFile) The file described by the specified PackFile. | public String | getGroup() Get the pack group. | public Set<String> | getInstallGroups() Get the install group names. | public List<OsConstraint> | getOsConstraints(List osConstraints) | public Pack | getPack() | public Set | getPackFiles() Set of PackFile objects for this Pack. | public String | getParent() | public List | getParsables() List of parsables for this Pack. | public List | getUpdateChecks() List of update checks for this Pack. | public boolean | hasInstallGroup(String group) See if the pack is associated with the given install group. | public boolean | isPreselected() | public void | setCondition(String condition) | public void | setDependencies(List<String> dependencies) | public void | setExcludeGroup(String group) Set the name of the group which contains the packs which exludes mutual. | public void | setGroup(String group) Set the pack group. | public void | setOsConstraints(List<OsConstraint> osConstraints) | public void | setPackImgId(String packImgId) | public void | setParent(String p) | public void | setPreselected(boolean preselected) | public String | toString() |
BLACK | final public static int BLACK(Code) | | black colour
|
GREY | final public static int GREY(Code) | | grey colour
|
WHITE | final public static int WHITE(Code) | | white colour
|
colour | public int colour(Code) | | The color of the node. This is used for the dependency graph algorithms
|
PackInfo | public PackInfo(String name, String id, String description, boolean required, boolean loose, String excludegroup, boolean uninstall)(Code) | | Constructor with required info.
Parameters: name - name of the pack Parameters: id - id of the pack e.g. to resolve I18N Parameters: description - descripton in English Parameters: required - pack is required or not Parameters: loose - files of pack should be stored separatly or not Parameters: excludegroup - name of the exclude group Parameters: uninstall - pack must be uninstalled |
addDependency | public void addDependency(String dependency)(Code) | | The packs that this file depends on
|
addExecutable | public void addExecutable(ExecutableFile executable)(Code) | | Executables files have their executable flag set, may be executed, and optionally, deleted
when finished executing.
|
addFile | public void addFile(File baseDir, File file, String targetfile, List<OsConstraint> osList, int override, Map additionals, String condition) throws FileNotFoundException(Code) | | Add a file or directory to be installed.
Parameters: file - the file or basedir to be installed. Parameters: targetfile - path file will be installed to. Parameters: osList - the target operation system(s) of this pack. Parameters: override - what to do if the file already exists when installing Parameters: condition - throws: FileNotFoundException - if the file specified does not exist. The file is not readuntil the Packager.createInstaller is invoked, thus a FileNotFoundEception will occurthen, if the file is deleted in between. |
addInstallGroup | public void addInstallGroup(String group)(Code) | | Add an install group to the pack.
Parameters: group - the install group to associate the pack with. |
addParsable | public void addParsable(ParsableFile parsable)(Code) | | Parsable files have variables substituted after installation.
|
addUpdateCheck | public void addUpdateCheck(UpdateCheck updateCheck)(Code) | | Executables files have their executable flag set, may be executed, and optionally, deleted
when finished executing.
|
getCondition | public String getCondition()(Code) | | the condition |
getExecutables | public List getExecutables()(Code) | | List of parsables for this Pack.
|
getGroup | public String getGroup()(Code) | | Get the pack group.
Get the pack group, null if there is no group. |
getInstallGroups | public Set<String> getInstallGroups()(Code) | | Get the install group names.
Set for the install groups |
getPackFiles | public Set getPackFiles()(Code) | | Set of PackFile objects for this Pack.
|
getParsables | public List getParsables()(Code) | | List of parsables for this Pack.
|
getUpdateChecks | public List getUpdateChecks()(Code) | | List of update checks for this Pack.
|
hasInstallGroup | public boolean hasInstallGroup(String group)(Code) | | See if the pack is associated with the given install group.
Parameters: group - the install group name to check true if the given group is associated with the pack. |
isPreselected | public boolean isPreselected()(Code) | | |
setCondition | public void setCondition(String condition)(Code) | | Parameters: condition - the condition to set |
setDependencies | public void setDependencies(List<String> dependencies)(Code) | | Attributes of the Pack
|
setExcludeGroup | public void setExcludeGroup(String group)(Code) | | Set the name of the group which contains the packs which exludes mutual.
Parameters: group - name of the mutal exclude group |
setGroup | public void setGroup(String group)(Code) | | Set the pack group.
Parameters: group - the group to associate the pack with. |
setPackImgId | public void setPackImgId(String packImgId)(Code) | | |
setPreselected | public void setPreselected(boolean preselected)(Code) | | |
|
|