MakeConfig { public static void main(String[] args) throws IOException { try { MakeConfigProperties props = new MakeConfigProperties(); boolean success = makeConfig(props); if (!success) System.exit(1); } catch (PropertyException e) { System.out.println(Exceptions.toMessageString(e)); printUsage(System.err); System.exit(1); } catch (CodegenRuntimeException e) { System.out.println(Exceptions.toMessageString(e)); System.exit(1); } } MakeConfig(InnerCNode root, NormalizedDefinition nd, MakeConfigProperties properties); @SuppressWarnings("WeakerAccess") // Used by ConfigGenMojo static boolean makeConfig(MakeConfigProperties properties); static void main(String[] args);  }
@Test public void testMake() throws IOException { System.setProperty("config.dumpTree", "true"); System.setProperty("config.useFramework", "true"); System.setProperty("config.dest", dest.getAbsolutePath()); System.setProperty("config.spec", "src/test/resources/configgen.allfeatures.def"); MakeConfig.main(new String[]{}); }