Class VelocityExecutionComponent
- java.lang.Object
-
- org.infrastructurebuilder.templating.AbstractTemplatingEngine<org.apache.velocity.app.VelocityEngine>
-
- org.infrastructurebuilder.templating.velocity.VelocityExecutionComponent
-
- All Implemented Interfaces:
TemplatingEngine
public class VelocityExecutionComponent extends AbstractTemplatingEngine<org.apache.velocity.app.VelocityEngine>
-
-
Field Summary
-
Fields inherited from class org.infrastructurebuilder.templating.AbstractTemplatingEngine
SCM_NAMES
-
Fields inherited from interface org.infrastructurebuilder.templating.TemplatingEngine
EXECUTION_IDENTIFIER
-
-
Constructor Summary
Constructors Constructor Description VelocityExecutionComponent(java.nio.file.Path src, java.nio.file.Path sourcePathRoot, boolean includeDotFiles, java.util.Optional<org.apache.maven.plugin.logging.Log> log, java.util.Optional<java.util.Collection<java.lang.String>> sourceExtensions, java.nio.file.Path sourceOutputDir, org.apache.maven.project.MavenProject project, boolean includeHiddenFiles, boolean caseSensitive, java.util.Optional<java.nio.file.Path> prefixPath, java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.velocity.app.VelocityEnginecreateEngine(java.nio.file.Path sourcePathRoot)voidwriteTemplate(org.apache.velocity.app.VelocityEngine engine, java.lang.String canoTemplate, java.nio.file.Path outFile)-
Methods inherited from class org.infrastructurebuilder.templating.AbstractTemplatingEngine
endsWith, execute, getDisplayedContext, getExecutionSource, getLog, getOutputDirectoryForFile, getOutputFile, getPrefixPath, getProject, getProperties, getSourceExtensions, getSourcePathRoot, getSourcesOutputDirectory, isCaseSensitive, isIncludeDotFiles, isIncludeHiddenFiles, isSCMDir, prependDot, processComments, quoteSharpsInComments, unquoteSharpsInComments
-
-
-
-
Constructor Detail
-
VelocityExecutionComponent
public VelocityExecutionComponent(java.nio.file.Path src, java.nio.file.Path sourcePathRoot, boolean includeDotFiles, java.util.Optional<org.apache.maven.plugin.logging.Log> log, java.util.Optional<java.util.Collection<java.lang.String>> sourceExtensions, java.nio.file.Path sourceOutputDir, org.apache.maven.project.MavenProject project, boolean includeHiddenFiles, boolean caseSensitive, java.util.Optional<java.nio.file.Path> prefixPath, java.util.function.Supplier<java.util.Map<java.lang.String,java.lang.Object>> properties)
-
-
Method Detail
-
createEngine
public final org.apache.velocity.app.VelocityEngine createEngine(java.nio.file.Path sourcePathRoot) throws java.lang.Exception- Specified by:
createEnginein classAbstractTemplatingEngine<org.apache.velocity.app.VelocityEngine>- Throws:
java.lang.Exception
-
writeTemplate
public void writeTemplate(org.apache.velocity.app.VelocityEngine engine, java.lang.String canoTemplate, java.nio.file.Path outFile) throws java.lang.Exception- Specified by:
writeTemplatein classAbstractTemplatingEngine<org.apache.velocity.app.VelocityEngine>- Throws:
java.lang.Exception
-
-