com.izforge.izpack.ant
Class IzPackTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended bycom.izforge.izpack.ant.IzPackTask
All Implemented Interfaces:
PackagerListener

public class IzPackTask
extends org.apache.tools.ant.Task
implements PackagerListener

A IzPack Ant task.

Author:
Paul Wilkinson

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 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.
 
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
 
Constructor Summary
IzPackTask()
          Creates new IZPackTask
 
Method Summary
 void execute()
          Packages.
 void packagerMsg(java.lang.String str)
          Logs a message to the Ant log.
 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 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, handleErrorOutput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName
 
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

input

private java.lang.String input
Holds value of property input.


basedir

private java.lang.String basedir
Holds value of property basedir.


output

private java.lang.String output
Holds value of property output.


installerType

private IzPackTask.InstallerType installerType
Holds value of property installerType.


izPackDir

private java.lang.String izPackDir
Holds value of property izPackDir. This should point at the IzPack directory

Constructor Detail

IzPackTask

public IzPackTask()
Creates new IZPackTask

Method Detail

packagerMsg

public void packagerMsg(java.lang.String str)
Logs a message to the Ant log.

Specified by:
packagerMsg in interface PackagerListener
Parameters:
str - The message to log.

packagerStart

public void packagerStart()
Called when the packaging starts.

Specified by:
packagerStart in interface PackagerListener

packagerStop

public void packagerStop()
Called when the packaging stops.

Specified by:
packagerStop in interface PackagerListener

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Packages.

Throws:
org.apache.tools.ant.BuildException - Description of the Exception

setInput

public void setInput(java.lang.String input)
Setter for property input.

Parameters:
input - New value of property input.

setBasedir

public void setBasedir(java.lang.String basedir)
Setter for property basedir.

Parameters:
basedir - New value of property basedir.

setOutput

public void setOutput(java.lang.String output)
Setter for property output.

Parameters:
output - New value of property output.

setInstallerType

public void setInstallerType(IzPackTask.InstallerType installerType)
Setter for property installerType.

Parameters:
installerType - New value of property installerType.

setIzPackDir

public void setIzPackDir(java.lang.String izPackDir)
Setter for property izPackDir.

Parameters:
izPackDir - New value of property izPackDir.