final Socket socket = new Socket(InetAddress.getByName(address),
port);
final RemoteControlWriter remoteWriter = new RemoteControlWriter(
socket.getOutputStream());
final RemoteControlReader remoteReader = new RemoteControlReader(
socket.getInputStream());
final ExecutionDataWriter outputWriter = new ExecutionDataWriter(
output);
remoteReader.setSessionInfoVisitor(outputWriter);
remoteReader.setExecutionDataVisitor(outputWriter);
remoteWriter.visitDumpCommand(dump, reset);
// Read session and/or execution data
remoteReader.read();
socket.close();
} catch (final IOException e) {
throw new BuildException("Unable to dump coverage data", e);
} finally {