Resource filtering fails for Freemarker templates
-------------------------------------------------
Key: ARCHETYPE-69
URL: http://jira.codehaus.org/browse/ARCHETYPE-69
Project: Maven Archetype
Issue Type: Bug
Environment: Ubuntu/Linux
Reporter: Leandro Rodrigo Saad Cruz
Priority: Critical
Using
<resources>
<resource filtered="false">Template.ftl</resource>
</resources>
fails. Velocity still tries to parse the file, leading to an error:
[ERROR] Parser Exception: archetype-resources/Template.ftl :
org.apache.velocity.runtime.parser.ParseException: Encountered "data" at line
28, column 30.
Was expecting:
"(" ...
at
org.apache.velocity.runtime.parser.Parser.generateParseException(Parser.java:3271)
at
org.apache.velocity.runtime.parser.Parser.jj_consume_token(Parser.java:3155)
at
org.apache.velocity.runtime.parser.Parser.IfStatement(Parser.java:1284)
at org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:293)
at org.apache.velocity.runtime.parser.Parser.process(Parser.java:258)
at org.apache.velocity.runtime.parser.Parser.parse(Parser.java:104)
at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:776)
at
org.apache.velocity.runtime.RuntimeInstance.parse(RuntimeInstance.java:720)
at org.apache.velocity.Template.process(Template.java:123)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira