Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.taskdefs.condition.Socket
Field 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