Package org.jbake.launcher
Class Init
- java.lang.Object
-
- org.jbake.launcher.Init
-
public class Init extends java.lang.ObjectInitialises sample folder structure with pre-defined template
-
-
Constructor Summary
Constructors Constructor Description Init(org.apache.commons.configuration2.CompositeConfiguration config)Deprecated.useInit(JBakeConfiguration)insteadInit(JBakeConfiguration config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrun(java.io.File outputFolder, java.io.File templateLocationFolder, java.lang.String templateType)Performs checks on output folder before extracting template file
-
-
-
Constructor Detail
-
Init
@Deprecated public Init(org.apache.commons.configuration2.CompositeConfiguration config)
Deprecated.useInit(JBakeConfiguration)instead- Parameters:
config- The project configuration
-
Init
public Init(JBakeConfiguration config)
-
-
Method Detail
-
run
public void run(java.io.File outputFolder, java.io.File templateLocationFolder, java.lang.String templateType) throws java.lang.ExceptionPerforms checks on output folder before extracting template file- Parameters:
outputFolder- Target directory for extracting template filetemplateLocationFolder- Source location for template filetemplateType- Type of the template to be used- Throws:
java.lang.Exception- if required folder structure can't be achieved without content overwriting
-
-