Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

latest documentation contains "deprecated" examples

19 views
Skip to first unread message

oleg.pol...@gmail.com

unread,
Jul 13, 2019, 5:24:24 PM7/13/19
to JBake Users
I read latest documentation 2.6.4 at https://jbake.org/docs/latest/
It contains example for maven - jbake-core 2.6.4 at "10.1. Maven coordinates"
It contains example for usage JBake - at "10.2. API"

But!
I see that method oven.setupPaths() is marked as DEPRECTED.

*facepalm*

Where I can find suitable documentaion?

oleg.pol...@gmail.com

unread,
Jul 13, 2019, 5:26:03 PM7/13/19
to JBake Users
More over main constructor also marked as deprecated!

Frank Becker

unread,
Jul 14, 2019, 9:50:19 AM7/14/19
to JBake Users
Hi Oleg,


I opened an issue https://github.com/jbake-org/jbake.org/issues/118

It 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.
Reply all
Reply to author
Forward
0 new messages