Modifier and Type | Field and Description |
---|---|
static int |
BLACK
black colour
|
int |
colour
The color of the node.
|
private List |
executables
Executable files in this Pack.
|
private Map |
files
Files of the Pack.
|
static int |
GREY
grey colour
|
private Pack |
pack
The pack object serialized in the installer.
|
private List |
parsables
Parsables files in this Pack.
|
private List |
updateChecks
Update check specifications in this Pack.
|
static int |
WHITE
white colour
|
Modifier | Constructor and Description |
---|---|
protected |
PackInfo(String name,
String id,
String description,
boolean required,
boolean loose)
Constructor with required info.
|
Modifier and Type | Method and Description |
---|---|
void |
addDependency(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(File file,
String targetfile,
List osList,
int override,
Map additionals)
Add a file or directory to be installed.
|
void |
addInstallGroup(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.
|
List |
getDependencies() |
List |
getExecutables()
List of parsables for this Pack.
|
File |
getFile(PackFile packFile)
The file described by the specified PackFile.
|
String |
getGroup()
Get the pack group.
|
Set |
getInstallGroups()
Get the install group names.
|
List |
getOsConstraints(List osConstraints) |
Pack |
getPack() |
Set |
getPackFiles()
Set of PackFile objects for this Pack.
|
List |
getParsables()
List of parsables for this Pack.
|
List |
getUpdateChecks()
List of update checks for this Pack.
|
boolean |
hasInstallGroup(String group)
See if the pack is associated with the given install group.
|
boolean |
isPreselected() |
void |
setDependencies(List dependencies)
Attributes of the Pack
|
void |
setGroup(String group)
Set the pack group.
|
void |
setOsConstraints(List osConstraints) |
void |
setPreselected(boolean preselected) |
String |
toString() |
public int colour
public static final int WHITE
public static final int GREY
public static final int BLACK
private List executables
private List updateChecks
public void setDependencies(List dependencies)
public void setOsConstraints(List osConstraints)
public List getOsConstraints(List osConstraints)
public void setPreselected(boolean preselected)
public boolean isPreselected()
public String getGroup()
public void setGroup(String group)
group
- the group to associate the pack with.public void addInstallGroup(String group)
group
- the install group to associate the pack with.public boolean hasInstallGroup(String group)
group
- the install group name to checkpublic Set getInstallGroups()
public void addFile(File file, String targetfile, List osList, int override, Map additionals) throws 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 installingFileNotFoundException
- 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 Set getPackFiles()
public File getFile(PackFile packFile)
getPackFiles()
.public void addParsable(ParsableFile parsable)
public List getParsables()
public void addExecutable(ExecutableFile executable)
public List getExecutables()
public void addUpdateCheck(UpdateCheck updateCheck)
public List getUpdateChecks()
public void addDependency(String dependency)
public List getDependencies()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses