public class HostnameTask extends Task
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_PROPERTY_NAME
Default name for the property to set.
|
description, location, project| Constructor and Description |
|---|
HostnameTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Called by the project to let the task do its work.
|
void |
setProperty(String newPropertyName)
Sets the name of the property.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeclone, getDescription, getLocation, getProject, setDescription, setLocation, setProjectpublic static final String DEFAULT_PROPERTY_NAME
public void setProperty(String newPropertyName)
null or ""
is passed as the argument, then DEFAULT_PROPERTY_NAME is
assumed.newPropertyName - the name of the property to store the host name in, or
null if the DEFAULT_PROPERTY_NAME should be
assumed.public void execute()
throws BuildException
execute in class TaskBuildException - if something goes wrong with the build.See http://www.xins.org/.