package yukihane.inqubus.model;
+import org.apache.commons.lang.StringUtils;
import yukihane.inqubus.manager.RequestProcess;
import yukihane.inqubus.manager.TaskKind;
import yukihane.inqubus.manager.TaskStatus;
if (status == TaskStatus.READY) {
text = status.toString();
} else if (status == TaskStatus.DOING || status == TaskStatus.DONE || status == TaskStatus.CANCELLED) {
- text = kind.toString() + " " + status.toString() + String.format("%.02f", percent) + "%";
+ if (StringUtils.isEmpty(message)) {
+ text = kind.toString() + " " + status.toString() + String.format("%.02f", percent) + "%";
+ } else {
+ text = message;
+ }
p = percent;
} else {
text = message;