Package org.jbake.app
Class Oven
- java.lang.Object
-
- org.jbake.app.Oven
-
public class Oven extends java.lang.ObjectAll the baking happens in the Oven!
-
-
Constructor Summary
Constructors Constructor Description Oven(java.io.File source, java.io.File destination, boolean isClearCache)Deprecated.UseOven(JBakeConfiguration)instead Delegate c'tor to prevent API break for the moment.Oven(java.io.File source, java.io.File destination, org.apache.commons.configuration2.CompositeConfiguration config, boolean isClearCache)Deprecated.UseOven(JBakeConfiguration)instead Creates a new instance of the Oven with references to the source and destination folders.Oven(JBakeConfiguration config)Create an Oven instance by aJBakeConfigurationOven(Utensils utensils)Create an Oven instance with givenUtensils
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbake()All the good stuff happens in here...voidbake(java.io.File fileToBake)Responsible for incremental baking, typically a single file at a time.org.apache.commons.configuration2.CompositeConfigurationgetConfig()Deprecated.java.util.List<java.lang.Throwable>getErrors()UtensilsgetUtensils()voidsetConfig(org.apache.commons.configuration2.CompositeConfiguration config)Deprecated.voidsetupPaths()Deprecated.There is no need for this method anymore.
-
-
-
Constructor Detail
-
Oven
@Deprecated public Oven(java.io.File source, java.io.File destination, boolean isClearCache) throws java.lang.ExceptionDeprecated.UseOven(JBakeConfiguration)instead Delegate c'tor to prevent API break for the moment.- Parameters:
source- Project source directorydestination- The destination folderisClearCache- Should the cache be cleaned- Throws:
java.lang.Exception- if configuration is not loaded correctly
-
Oven
@Deprecated public Oven(java.io.File source, java.io.File destination, org.apache.commons.configuration2.CompositeConfiguration config, boolean isClearCache) throws java.lang.ExceptionDeprecated.UseOven(JBakeConfiguration)instead Creates a new instance of the Oven with references to the source and destination folders.- Parameters:
source- Project source directorydestination- The destination folderconfig- Project configurationisClearCache- Should the cache be cleaned- Throws:
java.lang.Exception- if configuration is not loaded correctly
-
Oven
public Oven(JBakeConfiguration config)
Create an Oven instance by aJBakeConfigurationIt creates default
Utensilsneeded to bake sites.- Parameters:
config- The project configuration. seeJBakeConfiguration
-
-
Method Detail
-
getConfig
@Deprecated public org.apache.commons.configuration2.CompositeConfiguration getConfig()
Deprecated.
-
setConfig
@Deprecated public void setConfig(org.apache.commons.configuration2.CompositeConfiguration config)
Deprecated.
-
setupPaths
@Deprecated public void setupPaths()
Deprecated.There is no need for this method anymore. Validation is now part of the instantiation. Can be removed with 3.0.0.Checks source path contains required sub-folders (i.e. templates) and setups up variables for them.
-
bake
public void bake(java.io.File fileToBake)
Responsible for incremental baking, typically a single file at a time.- Parameters:
fileToBake- The file to bake
-
bake
public void bake()
All the good stuff happens in here...
-
getErrors
public java.util.List<java.lang.Throwable> getErrors()
-
getUtensils
public Utensils getUtensils()
-
-