Package org.jbake.launcher
Class Main
- java.lang.Object
-
- org.jbake.launcher.Main
-
public class Main extends java.lang.ObjectLauncher for JBake.
-
-
Constructor Summary
Constructors Modifier Constructor Description Main()Default constructor.protectedMain(Baker baker, JettyServer jetty, BakeWatcher watcher)Optional constructor to externalize dependencies.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JBakeConfigurationFactorygetJBakeConfigurationFactory()static voidmain(java.lang.String[] args)Runs the app with the given arguments.static voidprintUsage()voidrun(java.lang.String[] args)protected voidrun(LaunchOptions res, JBakeConfiguration config)voidsetJBakeConfigurationFactory(JBakeConfigurationFactory factory)
-
-
-
Constructor Detail
-
Main
public Main()
Default constructor.
-
Main
protected Main(Baker baker, JettyServer jetty, BakeWatcher watcher)
Optional constructor to externalize dependencies.- Parameters:
baker- ABakerinstancejetty- AJettyServerinstancewatcher- ABakeWatcherinstance
-
-
Method Detail
-
main
public static void main(java.lang.String[] args)
Runs the app with the given arguments.- Parameters:
args- Application arguments
-
run
public void run(java.lang.String[] args) throws JBakeException- Throws:
JBakeException
-
run
protected void run(LaunchOptions res, JBakeConfiguration config)
-
printUsage
public static void printUsage()
-
getJBakeConfigurationFactory
public JBakeConfigurationFactory getJBakeConfigurationFactory()
-
setJBakeConfigurationFactory
public void setJBakeConfigurationFactory(JBakeConfigurationFactory factory)
-
-