|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.izforge.izpack.compiler.PackInfo
public class PackInfo
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.
Field Summary | |
---|---|
static int |
BLACK
black colour |
int |
colour
The color of the node. |
private java.util.List |
executables
Executable files in this Pack. |
private java.util.Map |
files
Files of the Pack. |
static int |
GREY
grey colour |
private Pack |
pack
The pack object serialized in the installer. |
private java.util.List |
parsables
Parsables files in this Pack. |
private java.util.List |
updateChecks
Update check specifications in this Pack. |
static int |
WHITE
white colour |
Constructor Summary | |
---|---|
protected |
PackInfo(java.lang.String name,
java.lang.String id,
java.lang.String description,
boolean required,
boolean loose)
Constructor with required info. |
Method Summary | |
---|---|
void |
addDependency(java.lang.String dependency)
The packs that this file depends on |
void |
addExecutable(ExecutableFile executable)
Executables files have their executable flag set, may be executed, and optionally, deleted when finished executing. |
void |
addFile(java.io.File file,
java.lang.String targetfile,
java.util.List osList,
int override,
java.util.Map additionals)
Add a file or directory to be installed. |
void |
addInstallGroup(java.lang.String group)
Add an install group to the pack. |
void |
addParsable(ParsableFile parsable)
Parsable files have variables substituted after installation. |
void |
addUpdateCheck(UpdateCheck updateCheck)
Executables files have their executable flag set, may be executed, and optionally, deleted when finished executing. |
java.util.List |
getDependencies()
|
java.util.List |
getExecutables()
List of parsables for this Pack. |
java.io.File |
getFile(PackFile packFile)
The file described by the specified PackFile. |
java.lang.String |
getGroup()
Get the pack group. |
java.util.Set |
getInstallGroups()
Get the install group names. |
java.util.List |
getOsConstraints(java.util.List osConstraints)
|
Pack |
getPack()
|
java.util.Set |
getPackFiles()
Set of PackFile objects for this Pack. |
java.util.List |
getParsables()
List of parsables for this Pack. |
java.util.List |
getUpdateChecks()
List of update checks for this Pack. |
boolean |
hasInstallGroup(java.lang.String group)
See if the pack is associated with the given install group. |
boolean |
isPreselected()
|
void |
setDependencies(java.util.List dependencies)
Attributes of the Pack |
void |
setGroup(java.lang.String group)
Set the pack group. |
void |
setOsConstraints(java.util.List osConstraints)
|
void |
setPreselected(boolean preselected)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private Pack pack
public int colour
public static final int WHITE
public static final int GREY
public static final int BLACK
private java.util.Map files
private java.util.List parsables
private java.util.List executables
private java.util.List updateChecks
Constructor Detail |
---|
protected PackInfo(java.lang.String name, java.lang.String id, java.lang.String description, boolean required, boolean loose)
Method Detail |
---|
public void setDependencies(java.util.List dependencies)
public void setOsConstraints(java.util.List osConstraints)
public java.util.List getOsConstraints(java.util.List osConstraints)
public void setPreselected(boolean preselected)
public boolean isPreselected()
public java.lang.String getGroup()
public void setGroup(java.lang.String group)
group
- the group to associate the pack with.public void addInstallGroup(java.lang.String group)
group
- the install group to associate the pack with.public boolean hasInstallGroup(java.lang.String group)
group
- the install group name to check
public java.util.Set getInstallGroups()
public Pack getPack()
public void addFile(java.io.File file, java.lang.String targetfile, java.util.List osList, int override, java.util.Map additionals) throws java.io.FileNotFoundException
file
- the file or basedir to be installed.targetfile
- path file will be installed to.osList
- the target operation system(s) of this pack.override
- what to do if the file already exists when installing
java.io.FileNotFoundException
- if the file specified does not exist. The file is not read
until the Packager.createInstaller(java.io.File)
is invoked, thus a FileNotFoundEception will occur
then, if the file is deleted in between.public java.util.Set getPackFiles()
public java.io.File getFile(PackFile packFile)
getPackFiles()
.
public void addParsable(ParsableFile parsable)
public java.util.List getParsables()
public void addExecutable(ExecutableFile executable)
public java.util.List getExecutables()
public void addUpdateCheck(UpdateCheck updateCheck)
public java.util.List getUpdateChecks()
public void addDependency(java.lang.String dependency)
public java.util.List getDependencies()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |