org.apache.tools.ant.taskdefs.condition
public class Socket extends ProjectComponent implements Condition
Since: Ant 1.5
Method Summary | |
---|---|
boolean | eval() |
void | setPort(int port)
Set the port attribute
|
void | setServer(String server)
Set the server attribute
|
Returns: true if a socket can be created
Throws: BuildException if the attributes are not set
Parameters: port the port number of the socket
Parameters: server the server name