targetModules[i] = new TargetModuleIDImpl((TargetImpl) target, tag);
}
ProgressObjectImpl result = new ProgressObjectImpl(targetModules);
StatusQuery status = _deployClient.status(tag);
String archiveName;
if (archive != null)
archiveName = String.valueOf(archive);
else
archiveName = "stream";
if (status.getMessage() == null)
result.completed(L.l("application {0} deployed from {1}",
name, archiveName));
else
result.failed(L.l("application {0} failed from {1}: {2}",
name, archiveName, status.getMessage()));
return result;
} // XXX: hack
catch (RemoteConnectionFailedException e) {
reset();