Skip to content

Commit 7b79de4

Browse files
committed
replace generatedBy context value by template
1 parent fe34ce9 commit 7b79de4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modello-plugins/modello-plugin-velocity/src/main/java/org/codehaus/modello/plugin/velocity/VelocityGenerator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public void generate( Model model, Properties parameters ) throws ModelloExcepti
8484
for ( String templatePath : templates.split( "," ) )
8585
{
8686
Template template = velocity.getTemplate( templatePath );
87-
context.put( "generatedBy", "Generated by Modello Velocity from " + templatePath + " template, any modifications will be overwritten." );
87+
context.put( "template", templatePath );
8888

8989
try ( Writer w = new RedirectingWriter( Paths.get( output ) ) )
9090
{

modello-plugins/modello-plugin-velocity/src/site/xdoc/index.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
<tr><td><code>Helper</code></td><td><a href="apidocs/org/codehaus/modello/plugin/velocity/Helper.html"><code>Helper</code></a></td>
3535
<td>A helper tool with classical functions useful to generate content from a Modello model API.</td>
3636
</tr>
37-
<tr><td><code>generatedBy</code></td><td><code>String</code></td>
38-
<td>"Generated by Modello Velocity from " + templatePath + " template, any modifications will be overwritten."</td>
37+
<tr><td><code>template</code></td><td><code>String</code></td>
38+
<td>the template that is being evaluated.</td>
3939
</tr>
4040
</table>
4141
</p>

0 commit comments

Comments
 (0)