javaeekickoff / java-ee-8-kickoff-app-archetype

Maven archetype for a Java EE 8 based kickoff app
Other
3 stars 2 forks source link

Velocity Template Language (VTL) statements not recognized by Eclipse #1

Open jbn1981 opened 6 years ago

jbn1981 commented 6 years ago

It seems than Eclipse Oxygen.3a Release (4.7.3a) is unable to recognize these 3 VTL statements at the beggining of xhtml/xml files:

#set( $symbol_pound = '#' ) #set( $symbol_dollar = '$' ) #set( $symbol_escape = '\' )

For xml files the error is "Content is not allowed in prolog". For layout.xhtml the warning is "Invalid text string".

Thanks in advance. Awesome work!

arjantijms commented 6 years ago

Since they are templated files, that's sort of expected. I'm not entirely sure how to remedy this though.

Either Eclipse would have to recognise it somehow, or these files will have to be excluded from Eclipse validation. The latter can be done via an Eclipse project file, but these are excluded themselves it .gitignore.