2

I have a weird problem while parsing a Velocity template which gives me an exception similar to this problem where the user can't create a Map. I want to make sure that I don't use an old version of Velocity. How can I print the version of the Velocity being used in my template? (Or in any other way)

Community
  • 1
  • 1
Adam Arold
  • 29,285
  • 22
  • 112
  • 207

1 Answers1

1

You can check Apache Velocity version within the MANIFEST file inside velocity.jar

Specification-Vendor: Apache Software Foundation
Implementation-Title: org.apache.velocity
Implementation-Vendor-Id: org.apache
Implementation-Vendor: Apache Software Foundation
Implementation-Version: 1.7
Vasco Lameiras
  • 344
  • 3
  • 15
  • 1
    I don't know which velocity.jar is being used. I know about the MANIFEST file but I don't know where this .jar file resides. – Adam Arold May 02 '16 at 18:10
  • Maybe this will help you http://stackoverflow.com/questions/320542/how-to-get-the-path-of-a-running-jar-file – Vasco Lameiras May 02 '16 at 20:00
  • 1
    I don't think that you understand my problem. This doesn't answer my question either. – Adam Arold May 02 '16 at 23:09
  • I'm having this same problem in AWS API Gateway transformations. We have no access to the underlying VTL libraries. – pglezen Apr 05 '20 at 23:01