AntDataPortDelegate portDelegate = new AntDataPortDelegate(
this,
maps,
includeTables,
excludeTables);
DataPort dataPort = new DataPort(portDelegate);
dataPort.setEntities(getAllEntities(source, destination));
dataPort.setCleaningDestination(cleanDest);
dataPort.setSourceNode(source);
dataPort.setDestinationNode(destination);
try {
dataPort.execute();
}
catch (Exception e) {
Throwable topOfStack = Util.unwindException(e);
throw new BuildException(
"Error porting data: " + topOfStack.getMessage(),