I am using IDEA 3.0.5 and I run into some issue with
the file templates.
The File Template implementation is using Velocity
to generate actual instances but it seems to mess
with the template before passing it on to Velocity.
One thing which is done for sure is the extraction
of all the variables used and the user is prompted
to enter values for all of them before an instance
All nice so far, but some string that IDEA thinks
are Velocity variables are not actual variables
and there seems to be no way to escape them. Some
things that look like variables but aren't are:
- CVS keywords ($Log$)
- JSP Expression Language expressions ($)
- true variables used internally with a #set macro,
IDEA should not prompt for these
Using proper Velocity escaping does not work, it is
either ignored or generates a parse error.
The main question is: how can you escape variables
in file templates so IDEA ignores them?