|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.izforge.izpack.ant.IzPackTask
public class IzPackTask
A IzPack Ant task.
| Nested Class Summary | |
|---|---|
static class |
IzPackTask.InstallerType
Enumerated attribute with the values "asis", "add" and "remove". |
| Field Summary | |
|---|---|
private java.lang.String |
basedir
Holds value of property basedir. |
private java.lang.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 java.lang.String |
input
Holds value of property input. |
private IzPackTask.InstallerType |
installerType
Holds value of property installerType. |
private java.lang.String |
izPackDir
Holds value of property izPackDir. |
private java.lang.String |
output
Holds value of property output. |
private java.util.Properties |
properties
Holds properties used to make substitutions in the install file |
| Fields inherited from class org.apache.tools.ant.Task |
|---|
description, location, target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
project |
| Fields inherited from interface com.izforge.izpack.compiler.PackagerListener |
|---|
MSG_DEBUG, MSG_ERR, MSG_INFO, MSG_VERBOSE, MSG_WARN |
| Constructor Summary | |
|---|---|
IzPackTask()
Creates new IZPackTask |
|
| Method Summary | |
|---|---|
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. |
private static java.lang.String |
fixPathString(java.lang.String path)
|
void |
packagerMsg(java.lang.String str)
Logs a message to the Ant log at default priority (MSG_INFO). |
void |
packagerMsg(java.lang.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(java.lang.String basedir)
Setter for property basedir. |
void |
setCompression(java.lang.String compression)
Setter for property compression. |
void |
setCompressionLevel(int compressionLevel)
|
void |
setInheritAll(boolean value)
If true, pass all Ant properties to IzPack. |
void |
setInput(java.lang.String input)
Setter for property input. |
void |
setInstallerType(IzPackTask.InstallerType installerType)
Setter for property installerType. |
void |
setIzPackDir(java.lang.String izPackDir)
Setter for property izPackDir. |
void |
setOutput(java.lang.String output)
Setter for property output. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
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 |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
getProject, setProject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private ConfigHolder config
private java.lang.String input
private java.lang.String basedir
private java.lang.String output
private java.lang.String compression
private int compressionLevel
private IzPackTask.InstallerType installerType
private java.lang.String izPackDir
private java.util.Properties properties
private boolean inheritAll
| Constructor Detail |
|---|
public IzPackTask()
| Method Detail |
|---|
public ConfigHolder createConfig()
public void packagerMsg(java.lang.String str)
packagerMsg in interface PackagerListenerstr - The message to log.
public void packagerMsg(java.lang.String str,
int priority)
packagerMsg in interface PackagerListenerstr - The message to log.priority - The priority of the message.public void packagerStart()
packagerStart in interface PackagerListenerpublic void packagerStop()
packagerStop in interface PackagerListener
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - Description of the Exceptionprivate static java.lang.String fixPathString(java.lang.String path)
public void setInput(java.lang.String input)
input - New value of property input.public void setBasedir(java.lang.String basedir)
basedir - New value of property basedir.public void setOutput(java.lang.String output)
output - New value of property output.public void setInstallerType(IzPackTask.InstallerType installerType)
installerType - New value of property installerType.public void setIzPackDir(java.lang.String izPackDir)
izPackDir - New value of property izPackDir.public void setInheritAll(boolean value)
public void setCompression(java.lang.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 properties
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||