public class IzPackTask extends org.apache.tools.ant.Task implements PackagerListener
Modifier and Type | Class and Description |
---|---|
static class |
IzPackTask.InstallerType
Enumerated attribute with the values "asis", "add" and "remove".
|
Modifier and Type | Field and Description |
---|---|
private String |
basedir
Holds value of property basedir.
|
private String |
compression
Holds value of property compression.
|
private int |
compressionLevel
Holds value of property compression.
|
private ConfigHolder |
config
The embedded installation configuration
|
private boolean |
inheritAll
should we inherit properties from the Ant file?
|
private String |
input
Holds value of property input.
|
private IzPackTask.InstallerType |
installerType
Holds value of property installerType.
|
private String |
izPackDir
Holds value of property izPackDir.
|
private String |
output
Holds value of property output.
|
private Properties |
properties
Holds properties used to make substitutions in the install file
|
description, location, target, taskName, taskType, wrapper
MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN
Constructor and Description |
---|
IzPackTask()
Creates new IZPackTask
|
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredProperty(Property property)
Ant will call this for each <property> tag to the IzPack task.
|
void |
addConfiguredPropertyset(org.apache.tools.ant.types.PropertySet ps)
A set of properties to pass from the build environment to the install compile
|
ConfigHolder |
createConfig()
Called by ant to create the object for the config nested element.
|
void |
execute()
Packages.
|
void |
packagerMsg(String str)
Logs a message to the Ant log at default priority (MSG_INFO).
|
void |
packagerMsg(String str,
int priority)
Logs a message to the Ant log at the specified priority.
|
void |
packagerStart()
Called when the packaging starts.
|
void |
packagerStop()
Called when the packaging stops.
|
void |
setBasedir(String basedir)
Setter for property basedir.
|
void |
setCompression(String compression)
Setter for property compression.
|
void |
setCompressionLevel(int compressionLevel) |
void |
setInheritAll(boolean value)
If true, pass all Ant properties to IzPack.
|
void |
setInput(String input)
Setter for property input.
|
void |
setInstallerType(IzPackTask.InstallerType installerType)
Setter for property installerType.
|
void |
setIzPackDir(String izPackDir)
Setter for property izPackDir.
|
void |
setOutput(String output)
Setter for property output.
|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
private ConfigHolder config
private String compression
private int compressionLevel
private IzPackTask.InstallerType installerType
private String izPackDir
private Properties properties
private boolean inheritAll
public IzPackTask()
public ConfigHolder createConfig()
public void packagerMsg(String str)
packagerMsg
in interface PackagerListener
str
- The message to log.public void packagerMsg(String str, int priority)
packagerMsg
in interface PackagerListener
str
- The message to log.priority
- The priority of the message.public void packagerStart()
packagerStart
in interface PackagerListener
public void packagerStop()
packagerStop
in interface PackagerListener
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.Task
org.apache.tools.ant.BuildException
- Description of the Exceptionpublic void setInput(String input)
input
- New value of property input.public void setBasedir(String basedir)
basedir
- New value of property basedir.public void setOutput(String output)
output
- New value of property output.public void setInstallerType(IzPackTask.InstallerType installerType)
installerType
- New value of property installerType.public void setIzPackDir(String izPackDir)
izPackDir
- New value of property izPackDir.public void setInheritAll(boolean value)
public void setCompression(String compression)
compression
- The type compression to set for pack compression.public void setCompressionLevel(int compressionLevel)
compressionLevel
- The compressionLevel to set.public void addConfiguredProperty(Property property)
public void addConfiguredPropertyset(org.apache.tools.ant.types.PropertySet ps)
ps
- The propertyset collection of propertiesWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses