public class CodegenUtils extends Object
| Constructor and Description |
|---|
CodegenUtils() |
| Modifier and Type | Method and Description |
|---|---|
static com.github.jknack.handlebars.Template |
compileTemplate(String defaultTemplateDir,
String templateName)
Compile given template
|
static String |
trim(String key) |
static void |
writeGeneratedSources(List<GenSrcFile> sources,
Path srcPath,
boolean overwrite)
Write generated templates
|
public static com.github.jknack.handlebars.Template compileTemplate(String defaultTemplateDir, String templateName) throws IOException
defaultTemplateDir - template directorytemplateName - template nameIOException - if file read went wrongpublic static void writeGeneratedSources(List<GenSrcFile> sources, Path srcPath, boolean overwrite) throws IOException
sources - list of source filessrcPath - source locationoverwrite - whether existing files overwrite or notIOException - if file write went wrongCopyright © 2019 WSO2. All rights reserved.