On 20/02/2008, Laurie Harper <[EMAIL PROTECTED]> wrote:
>
> How do I package resources in an archetype so that they don't get
> filtered through Velocity when the archetype is used? Currently Velocity
> is choking on Javascript files contained in the archetype, and I'd
> rather not have to modify all the Javascript files so they will pass
> through Velocity without error (the archetype is packaging third-party
> code I don't want to modify).
perhaps you could try adding:
#literal()
to the start of the file, and:
#end
to the end of the file - any text between should be copied literally by
Velocity
HTH
Thanks,
>
> L.
>
> $ mvn --version
> Maven version: 2.0.6
> $ mvn archetype:create ...
> ...
> [ERROR] Parser Exception:
> archetype-resources/src/main/webapp/lib/.../xxx.js :
> org.apache.velocity.runtime.parser.ParseException: Encountered " " at
> line 664, column 11.
> Was expecting one of:
> <EOF>
> "(" ...
> <RPAREN> ...
> <ESCAPE_DIRECTIVE> ...
> <SET_DIRECTIVE> ...
> "\\\\" ...
> "\\" ...
> <TEXT> ...
> <SINGLE_LINE_COMMENT> ...
> "*#" ...
> "*#" ...
> <STRING_LITERAL> ...
> "if" ...
> "stop" ...
> <NUMBER_LITERAL> ...
> <WORD> ...
> <IDENTIFIER> ...
> <DOT> ...
> "{" ...
> "}" ...
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Cheers, Stuart