diff --git a/modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity/VelocityGenerator.java b/modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity/VelocityGenerator.java index c5010c1cb..219b6ba03 100644 --- a/modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity/VelocityGenerator.java +++ b/modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity/VelocityGenerator.java @@ -84,7 +84,7 @@ public void generate( Model model, Properties parameters ) throws ModelloExcepti for ( String templatePath : templates.split( "," ) ) { Template template = velocity.getTemplate( templatePath ); - context.put( "generatedBy", "Generated by Modello Velocity from " + templatePath + " template, any modifications will be overwritten." ); + context.put( "template", templatePath ); try ( Writer w = new RedirectingWriter( Paths.get( output ) ) ) { diff --git a/modello-plugins/modello-plugin-velocity/src/site/xdoc/index.xml b/modello-plugins/modello-plugin-velocity/src/site/xdoc/index.xml index 0c4674588..df3885287 100644 --- a/modello-plugins/modello-plugin-velocity/src/site/xdoc/index.xml +++ b/modello-plugins/modello-plugin-velocity/src/site/xdoc/index.xml @@ -34,8 +34,8 @@ HelperHelper A helper tool with classical functions useful to generate content from a Modello model API. - generatedByString - "Generated by Modello Velocity from " + templatePath + " template, any modifications will be overwritten." + templateString + the template that is being evaluated.