add source file path to result content view for consistency

This commit is contained in:
adam-m 2013-01-09 13:51:38 -05:00
parent 6d33cd7aaf
commit 2f529c1cc0

View File

@ -104,6 +104,22 @@ public class ArtifactStringContent implements StringContent {
buffer.append("</td>");
buffer.append("</tr>");
}
//add file path
buffer.append("<tr>");
buffer.append("<td>Source File</td>");
buffer.append("<td>");
final Content content = getAssociatedContent(wrapped);
buffer.append(content.getName());
buffer.append("</td>");
buffer.append("</tr>");
buffer.append("<tr>");
buffer.append("<td>Source File Path</td>");
buffer.append("<td>");
buffer.append(DataConversion.getformattedPath(ContentUtils.getDisplayPath(content), 0, 1));
buffer.append("</td>");
buffer.append("</tr>");
buffer.append("</table>");
buffer.append("</html>");
return buffer.toString();