public class Oven
extends java.lang.Object
| Constructor and Description |
|---|
Oven(java.io.File source,
java.io.File destination,
boolean isClearCache)
Delegate c'tor to prevent API break for the moment.
|
Oven(java.io.File source,
java.io.File destination,
org.apache.commons.configuration.CompositeConfiguration config,
boolean isClearCache)
Creates a new instance of the Oven with references to the source and destination folders.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bake()
All the good stuff happens in here...
|
org.apache.commons.configuration.CompositeConfiguration |
getConfig() |
java.util.List<java.lang.Throwable> |
getErrors() |
void |
setConfig(org.apache.commons.configuration.CompositeConfiguration config) |
void |
setupPaths()
Checks source path contains required sub-folders (i.e.
|
public Oven(java.io.File source,
java.io.File destination,
boolean isClearCache)
throws org.apache.commons.configuration.ConfigurationException
source - Project source directorydestination - The destination folderisClearCache - Should the cache be cleanedorg.apache.commons.configuration.ConfigurationException - if configuration is not loaded correctlypublic Oven(java.io.File source,
java.io.File destination,
org.apache.commons.configuration.CompositeConfiguration config,
boolean isClearCache)
source - Project source directorydestination - The destination folderconfig - Project configurationisClearCache - Should the cache be cleanedpublic org.apache.commons.configuration.CompositeConfiguration getConfig()
public void setConfig(org.apache.commons.configuration.CompositeConfiguration config)
public void setupPaths()
JBakeException - If template or contents folder don't existpublic void bake()
public java.util.List<java.lang.Throwable> getErrors()