Package org.apache.tools.ant.taskdefs
Class HostInfo
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.HostInfo
- All Implemented Interfaces:
- Cloneable
Sets properties to the host provided, or localhost if no information is
 provided. The default properties are NAME, FQDN, ADDR4, ADDR6;
- Since:
- Ant 1.8
- 
Field SummaryFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
HostInfopublic HostInfo()
 
- 
- 
Method Details- 
setPrefixSet a prefix for the properties. If the prefix does not end with a "." one is automatically added.- Parameters:
- aPrefix- the prefix to use.
- Since:
- Ant 1.8
 
- 
setHostSet the host to be retrieved.- Parameters:
- aHost- the name or the address of the host, data for the local host will be retrieved if omitted.
- Since:
- Ant 1.8
 
- 
executeset the properties.- Overrides:
- executein class- Task
- Throws:
- BuildException- on error.
 
 
-