public class MyTask extends BaseAntTask {
public void execute() throws BuildException {
// execute standard login behaviour
super.execute();
RhinoConnection client = getClient();
// do something with the connection
}
}