Page 1 of 1

velocity and java

Posted: Wed Apr 04, 2018 11:47 am
by Janez
Hi

Does anyone knows it it is possible to import java classes in classic wiki page. I need some Java classes which velocity doesn't support it. For example java class LocalDate:

Code: Select all

java.util.Date
java.java.time.LocalDate


Does anyone can help me?

Regards

Re: velocity and java

Posted: Wed Apr 04, 2018 12:29 pm
by Janez
Maybe I miss the idea of polarion but I want to compare dueDate with the system date. Because of that I want to use classic Java.

Re: velocity and java

Posted: Thu Apr 05, 2018 7:45 am
by ALMighty
Janez wrote: Does anyone knows it it is possible to import java classes in classic wiki page.


You can't, but you could try the dateTool class which is (at least it seems to me) built in the Velocity engine:
https://velocity.apache.org/tools/1.4/j ... eTool.html