Usage

Use this tool it if you want to run source generation from Java. Put the jar to the classpath or set up proper dependency (see dependency-info for instructions).

Put all necessary parameters to a Properties object.

final Properties params = new Properties();
params.setProperty(Launcher.JDBC_DRIVER, "com.mysql.jdbc.Driver");
...

Replace logger to redirect logs to your logging system if necessary. Default implementation logs to stdout. You have to derive a class from SimpleLogger and call setLogger() providing an instance of your implementation.

SimpleLogger.setLogger(myLogger);

Now call Launcher.run method

new Launcher().run(params);

Catch exceptions as necessary.

That's it.