String outFile;
if ("raw".equals(key) || "xan".equals(key))
outFile = outDir + toolName + ext + host;
else
outFile = outDir + toolName + '-' + key + ext + host;
transfer[idx++] = new FileTransfer(path, outFile);
}
} else {
transfer = new FileTransfer[1];
logfile = tc.getOutputFile();
logger.finer("single file transfer. logfile is " + logfile);
if (!new File(logfile).exists()) {
logger.warning(toolName + ": Transfer file " + logfile +
" not found.");
return;
}
transfer[0] = new FileTransfer(logfile, outfile);
}
String s = Config.FILE_AGENT;
FileAgent fa = (FileAgent) CmdAgentImpl.getRegistry().getService(s);
for (FileTransfer t : transfer) {