1 package eu.svjatoslav.inspector.java;
3 import eu.svjatoslav.inspector.java.structure.ClassGraph;
5 import static java.io.File.separator;
6 import static java.lang.System.getProperty;
9 public static void main(String[] args) {
10 if (args.length == 0) {
11 System.err.println("usage: javainspect [PROJECT_DIR] [PACKAGE_GLOB] [GRAPH_NAME]");
15 String projectDir = args[0];
16 String packageGlob = args[1];
17 String graphName = args[2];
19 ClassGraph cg = new ClassGraph();
20 cg.setTargetDirectoryPath(getProperty("user.dir") + separator);
22 cg.addProject(projectDir);
23 cg.whitelistClassPattern(packageGlob);
24 cg.setKeepDotFile(true);
25 cg.generateGraph(graphName);