From: Anthony Bargnesi Date: Thu, 22 Sep 2016 17:12:03 +0000 (-0400) Subject: renders to SVG in call to graphviz *dot* X-Git-Tag: javainspect-1.7~31^2~7 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=de0edf9367097759c51d06e2c2aa0dcbb0b01500;p=javainspect.git renders to SVG in call to graphviz *dot* --- diff --git a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java index 1488b1c..c6b6cbf 100755 --- a/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java +++ b/src/main/java/eu/svjatoslav/inspector/java/structure/ClassGraph.java @@ -93,7 +93,7 @@ public class ClassGraph { public void generateGraph(final String resultFileName) { final String dotFilePath = targetDirectory + resultFileName + ".dot"; - final String imageFilePath = targetDirectory + resultFileName + ".png"; + final String imageFilePath = targetDirectory + resultFileName + ".svg"; System.out.println("Dot file path:" + dotFilePath); @@ -106,7 +106,7 @@ public class ClassGraph { // execute GraphViz to visualize graph try { Runtime.getRuntime() - .exec(new String[]{"dot", "-Tpng", dotFilePath, "-o", + .exec(new String[]{"dot", "-Tsvg", dotFilePath, "-o", imageFilePath}).waitFor(); } catch (final InterruptedException ignored) { }