com.infoengine.administration.packaging
Class AntInstaller
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.infoengine.administration.packaging.AntInstaller
- public class AntInstaller
- extends org.apache.tools.ant.Task
Ant task used to install ptcdar and ptctar packages.
Example Ant Usage:
<taskdef name="installer" classname="com.infoengine.administration.packaging.AntInstaller">
<classpath refid="cp"/>
</taskdef>
<installer
propFile="${wt.home}/codebase/wt.properties"
ptcArchive="saved/tedsAutoStoreExtravaganza.ptcdar" />
|
Parameters:
propFile
- Location of properties file (required).
tasks
- Location of expanded tasks to install (useful for development).
ptcArchive
- Location of the ptcdar/ptctar file (required if install).
ptcArchiveList
- Location of a list of ptcdar/ptctar files to be installed (alternate to for installs).
(embedded fileset)
- Set of Lists of ptcdar/ptctar files to be installed (alternate to for installs).
defaultRepository
- The default repository to use (otherwise extracted from properties).
packageName
- The name of the package (required on uninstall if ptcArchive not specified).
loadPoint
- A subdirectory in tasks
to install.
vmName
- The virtual machine name. Required on standalone I*E install (otherwise extracted from properties).
nsName
- The naming service name. Required on standalone I*E install (otherwise extracted from properties).
quiet
- Boolean signaling no output (default false).
uninstall
- Boolean signaling install or uninstall behaviour. (default false, install).
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 |
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 |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
propFile
private String propFile
tasks
private String tasks
ptcArchive
private String ptcArchive
defaultRepository
private String defaultRepository
packageName
private String packageName
loadPoint
private String loadPoint
vmName
private String vmName
nsName
private String nsName
quiet
private boolean quiet
uninstall
private boolean uninstall
fileSet
private org.apache.tools.ant.types.FileSet fileSet
ptcArchives
private String ptcArchives
AntInstaller
public AntInstaller()
AntInstaller
public AntInstaller(AntInstaller src)
setPropfile
public void setPropfile(String s)
setTasks
public void setTasks(String s)
setPtcarchive
public void setPtcarchive(String s)
setVmname
public void setVmname(String s)
setNsname
public void setNsname(String s)
setDefaultrepository
public void setDefaultrepository(String s)
setLoadpoint
public void setLoadpoint(String s)
setQuiet
public void setQuiet(boolean b)
setUninstall
public void setUninstall(boolean b)
setPackagename
public void setPackagename(String s)
setPtcarchives
public void setPtcarchives(String s)
addConfiguredFileSet
public void addConfiguredFileSet(org.apache.tools.ant.types.FileSet aSet)
execute
public void execute()
throws org.apache.tools.ant.BuildException
- Throws:
org.apache.tools.ant.BuildException
initInstaller
private void initInstaller(Installer installer)
throws Exception
- Throws:
Exception
readListFile
private static Vector readListFile(File aListFile)
throws IOException
- Throws:
IOException