use of com.github.javaparser.printer.PrettyPrinterConfiguration in project javaparser by javaparser.
the class MetaModelGenerator method main.
public static void main(String[] args) throws IOException, NoSuchMethodException {
if (args.length != 1) {
throw new RuntimeException("Need 1 parameter: the JavaParser source checkout root directory.");
}
final Path root = Paths.get(args[0], "..", "javaparser-core", "src", "main", "java");
final SourceRoot sourceRoot = new SourceRoot(root);
sourceRoot.setPrinter(new PrettyPrinter(new PrettyPrinterConfiguration().setEndOfLineCharacter("\n"))::print);
new MetaModelGenerator().run(sourceRoot);
sourceRoot.saveAll();
}
Aggregations