if (deployResultHandler != null && deployResultHandler.getMessageCount() > 0) {
DeployMessageExt deployMessageExt = deployResultHandler.getMessageHandler();
deployMessageExt.sort(DeployMessageExt.SORT_RESULT);
DeployMessage[] deployMessages = deployMessageExt.getMessages();
for (int i = 0; i < deployMessages.length; i++) {
DeployMessage deployMessage = deployMessages[i];
strBuff.append("\n File Name: ").append(deployMessage.getFileName()).append("\n Full Name: ").append(
deployMessage.getFullName()).append("\n Action: ").append(
getActionString(deployMessage)).append("\n Result: ").append(
deployMessage.isSuccess() ? "SUCCESS" : "FAILED").append("\n Problem: ").append(
Utils.isNotEmpty(deployMessage.getProblem()) ? deployMessage.getProblem() : "n/a").append("\n");
}
} else {
strBuff.append("\n n/a\n");
}