Hi Oleg,
I opened an issue
https://github.com/jbake-org/jbake.org/issues/118It should look similar to:
try {
File source = new File("/path/to/project_source");
File destination = new File("/path/to/project_output");
DefaultJBakeConfiguration configuration = new JBakeConfigurationFactory().createDefaultJbakeConfiguration(source, destination, true);
Oven oven = new Oven(configuration);
oven.bake();
} catch (ConfigurationException e) {
// do something with exception here
} catch (JBakeException e) {
// do something with exception here
}
Hope that helps a bit.