Skip to content

Commit

Permalink
Better tree visualization
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Nov 27, 2012
1 parent 04c8aad commit 0760d32
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,12 @@ protected void prettyPrint(StringBuilder builder, int depth)
{
for (int i = 0; i < depth; i++)
{
builder.append("\t");
builder.append(" ");
}
builder.append("|-").append(dependency).append("\n");
if (depth > 0) {
builder.append("|-");
}
builder.append(dependency).append("\n");
for (DependencyNode child : getChildren())
{
((MavenDependencyNode) child).prettyPrint(builder, depth + 1);
Expand Down

0 comments on commit 0760d32

Please sign in to comment.