Class HostInfo

All Implemented Interfaces:
Cloneable

public class HostInfo extends Task
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
  • Constructor Details

    • HostInfo

      public HostInfo()
  • Method Details

    • setPrefix

      public void setPrefix(String aPrefix)
      Set 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
    • setHost

      public void setHost(String aHost)
      Set 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
    • execute

      public void execute() throws BuildException
      set the properties.
      Overrides:
      execute in class Task
      Throws:
      BuildException - on error.