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 * This class acts as a commandline interface for JavaInspect.
12 public static void main(String[] args) {
13 if (args.length == 0) {
14 System.err.println("usage: javainspect [PROJECT_DIR] [PACKAGE_GLOB] [GRAPH_NAME]");
18 String projectDir = args[0];
19 String packageGlob = args[1];
20 String graphName = args[2];
22 ClassGraph cg = new ClassGraph();
23 cg.setTargetDirectoryPath(getProperty("user.dir") + separator);
25 cg.addProject(projectDir);
26 cg.whitelistClassGlob(packageGlob);
27 cg.setKeepDotFile(true);
28 cg.generateGraph(graphName);