Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,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 ) ) )
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
<tr><td><code>Helper</code></td><td><a href="apidocs/org/codehaus/modello/plugin/velocity/Helper.html"><code>Helper</code></a></td>
<td>A helper tool with classical functions useful to generate content from a Modello model API.</td>
</tr>
<tr><td><code>generatedBy</code></td><td><code>String</code></td>
<td>"Generated by Modello Velocity from " + templatePath + " template, any modifications will be overwritten."</td>
<tr><td><code>template</code></td><td><code>String</code></td>
<td>the template that is being evaluated.</td>
</tr>
</table>
</p>
Expand Down