| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.tools.ant.ProjectComponentorg.apache.tools.ant.taskdefs.condition.SocketField Summary |
Fields inherited from class org.apache.tools.ant.ProjectComponent | |
description, location, project | |
Method Summary | |
boolean |
|
void |
|
void |
|
Methods inherited from class org.apache.tools.ant.ProjectComponent | |
clone, getDescription, getLocation, getProject, log, log, setDescription, setLocation, setProject | |
public boolean eval()
throws BuildException
- Returns:
- true if a socket can be created
- Throws:
BuildException- if the attributes are not set
public void setPort(int port)
Set the port attribute
- Parameters:
port- the port number of the socket
public void setServer(String server)
Set the server attribute
- Parameters:
server- the server name