maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wendy Smoak (JIRA)" <>
Subject [jira] Commented: (ARCHETYPE-39) Add tool for working with escaping in Velocity templates
Date Sun, 24 Dec 2006 19:22:09 GMT
    [ ] 
Wendy Smoak commented on ARCHETYPE-39:

Mikko's suggestion works for me.   Can we get it in as a workaround until someone has time
to pursue the EscapeTool from Velocity?

We really need some way of escaping expressions so they're not filtered.

Right now I can't make an archetype for the Struts 2 Blank webapp, because of this line in
a .properties file:
requiredstring = ${getText(fieldName)} is required.

Velocity complains.
Embedded error: Error merging velocity templates
Encountered "(fieldName)} is required.\r\npassword = Password\r\nusername = User
 Name\r\nMissing.message =  This feature is under construction. Please try again
 in the next iteration.\r\n" at line 2, column 27.
Was expecting one of:
    "}" ...
    <DOT> ...

> Add tool for working with escaping in Velocity templates
> --------------------------------------------------------
>                 Key: ARCHETYPE-39
>                 URL:
>             Project: Maven Archetype
>          Issue Type: Improvement
>          Components: Plugin
>    Affects Versions: 1.0-alpha-4
>            Reporter: Willie Vu
>         Attachments: ARCHETYPE-39.patch
> e.g. I need to put ${archifactId} (without parameter replacement) into an assembly descriptor.
 I need to escape the dollar sign.
> This is the Escape Tool of Velocity -
 The embedded Velocity engine will be configured to use it, or archetype plugin allows further
Velocity configuration.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message