Class TemplateValidator

    • Constructor Detail

      • TemplateValidator

        public TemplateValidator​(ResourceCollection templateDir,
                                 HandlebarsManager handlebarsManager)
        Parameters:
        templateDir - Template directory
        handlebarsManager - Handlebars Manager
    • Method Detail

      • validate

        public Void validate​(Resource resource,
                             String pathForLog)
                      throws org.apache.maven.plugin.MojoFailureException
        Description copied from interface: DefinitionValidator
        Validates the given resource
        Specified by:
        validate in interface DefinitionValidator<Void>
        Parameters:
        resource - Resource
        pathForLog - Path for log message
        Returns:
        Result
        Throws:
        org.apache.maven.plugin.MojoFailureException - Mojo failure exception